Download the JDK
Search the Tutorials
Hide the TOC
Trail: 2D Graphics
Lesson: Working with Text APIs
Working with Text APIs
Selecting a Font
Measuring Text
Advanced Text Display
Displaying Antialiased Text by Using Rendering Hints
Using Text Attributes to Style Text
Drawing Multiple Lines of Text
Home Page > 2D Graphics > Working with Text APIs
Advanced Text Display

> 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 the `TextAttribute` 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 the `TextLayout` and `LineBreakMeasurer` classes.

Previous page: Measuring Text
Next page: Displaying Antialiased Text by Using Rendering Hints