The Java 2D™ API provides mechanisms to support sophisticated text layout. This section describes following features of advanced text display.
Displaying Antialiased Text by Using Rendering Hints
This section explains how to control the rendering quality through the use of rendering hints.Using Text Attributes to Style Text
This section explains how to use theTextAttribute
class to underline or strikethough text.Drawing Multiple Lines of Text
This section explains how to position and render a paragraph of styled text by using theTextLayout
andLineBreakMeasurer
classes.