文档

Java™ 教程-Java Tutorials 中文版
高级文本显示
Trail: 2D Graphics
Lesson: Working with Text APIs

高级文本显示

The Java 2D API provides mechanisms to support sophisticated text layout. This section describes following features of advanced text display.

使用渲染提示显示抗锯齿文本

This section explains how to control the rendering quality through the use of rendering hints.

使用文本属性来设置文本样式

This section explains how to use the TextAttribute class to underline or strikethough text.

绘制多行文本

This section explains how to position and render a paragraph of styled text by using the TextLayout and LineBreakMeasurer classes.

使用双向文本

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