#include <GXLayoutEngine.h>
Inheritance diagram for GXLayoutEngine:
Public Methods | |
GXLayoutEngine (LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, MorphTableHeader *morphTable) | |
This is the main constructor. More... | |
virtual | ~GXLayoutEngine () |
The destructor, virtual for correct polymorphic invocation. | |
Protected Methods | |
virtual le_int32 | computeGlyphs (const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, LEGlyphID *&glyphs, le_int32 *&charIndices) |
This method does GX layout using the font's 'mort' table. More... | |
virtual void | adjustGlyphPositions (const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, LEGlyphID glyphs[], le_int32 glyphCount, float positions[]) |
This method adjusts the glyph positions using the font's 'kern', 'trak', 'bsln', 'opbd' and 'just' tables. More... | |
Protected Attributes | |
MorphTableHeader* | fMorphTable |
The address of the 'mort' table. More... |
A font is a GX or AAT font if it contains a 'mort' table. See Apple's TrueType Reference Manual (http://fonts.apple.com/TTRefMan/index.html) for details. Information about 'mort' tables is in the chapter titled "Font Files."
Definition at line 25 of file GXLayoutEngine.h.
|
This is the main constructor. It constructs an instance of GXLayoutEngine for a particular font, script and language. It takes the 'mort' table as a parameter since LayoutEngine::layoutEngineFactory has to read the 'mort' table to know that it has a GX font. Note: GX and AAT fonts don't contain any script and language specific tables, so the script and language are ignored.
|
|
The destructor, virtual for correct polymorphic invocation.
|
|
This method adjusts the glyph positions using the font's 'kern', 'trak', 'bsln', 'opbd' and 'just' tables. Input parameters:
Reimplemented from LayoutEngine. |
|
This method does GX layout using the font's 'mort' table. It converts the input character codes to glyph indices using mapCharsToGlyphs, and then applies the 'mort' table. Input parameters:
Reimplemented from LayoutEngine. |
|
The address of the 'mort' table.
Definition at line 57 of file GXLayoutEngine.h. |