Documentation

The Java™ Tutorials
Hide TOC
Advanced Text Display
Trail: 2D Graphics
Lesson: 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 strike-though 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.


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