CONTENTS | PREV | NEXT | Java 2D API |
CHAPTER 4 |
Text Layout and Fonts |
You can use the Java 2D API transformation and drawing mechanisms with text strings. In addition, the Java 2D API provides text-related classes that support sophisticated text layout and fine-grain font control. For example, the Font class has been enhanced to support the specification of detailed font information and enable access to information about a font and its glyphs.This chapter focuses on the new layout and font capabilities supported through interfaces and classes in java.awt and java.awt.font. For information about text analysis and internationalization, refer to the java.text documentation and the "Writing Global Programs" track in the Java Tutorial.
Note: The information on international text layout contained in this chapter is based on the paper "International Text in JDK 1.2" by Mark Davis, Doug Felt, and John Raley, copyright 1997, Taligent, Inc.