View RSS Feed

Java AWT

AWT Text Layout

Rate this Entry
by , 03-04-2012 at 05:41 PM (518 Views)
Text characters shall be laid out by using proper glyphs, in a proper position. This is done before the text gets displayed. To manage the text layouts, these Java 2D mechanisms are used.

Following is managed by the TextLayout:
1. Text layout
2. Hit detection
3. Highlighting

To handle cases, the TextLayout gives these facilities.

1. Strings along with mixed fonts
2. Bidirectional text
3. Mixed languages

Graphics 2D class is used to create the GlyphVector. This is how text is positioned and shaped.

Submit "AWT Text Layout" to Facebook Submit "AWT Text Layout" to Digg Submit "AWT Text Layout" to del.icio.us Submit "AWT Text Layout" to StumbleUpon Submit "AWT Text Layout" to Google

Categories
Graphics

Comments