Trail: 2D Graphics
Lesson: Working with Text APIs
Advanced Text Display
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.

Working with Bidirectional Text

This section discusses how to work with bidirectional text with classes in the java.awt and java.awt.font packages.


Problems with the examples? Try Compiling and Running the Examples: FAQs.
Complaints? Compliments? Suggestions? Give us your feedback.

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