AWT Text Layout
by, 03-04-2012 at 05:41 PM (398 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
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.