#include <ThaiLayoutEngine.h>
Inheritance diagram for ThaiLayoutEngine::
Public Methods | |
ThaiLayoutEngine (const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode) | |
This constructs an instance of ThaiLayoutEngine for the given font, script and language. More... | |
virtual | ~ThaiLayoutEngine () |
The destructor, virtual for correct polymorphic invocation. More... | |
virtual UClassID | getDynamicClassID () const |
ICU "poor man's RTTI", returns a UClassID for the actual class. More... | |
Static Public Methods | |
UClassID | getStaticClassID () |
ICU "poor man's RTTI", returns a UClassID for this class. More... | |
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, LEErrorCode &success) |
This method performs Thai layout. More... | |
Protected Attributes | |
le_uint8 | fGlyphSet |
A small integer indicating which Thai encoding the font uses. More... | |
LEUnicode | fErrorChar |
The character used as a base for vowels and tone marks that are out of sequence. More... | |
Static Private Attributes | |
const char | fgClassID |
The address of this static class variable serves as this class's ID for ICU "poor man's RTTI". More... |
All existing Thai fonts use an encoding which assigns character codes to all the variant forms needed to display accents and tone marks correctly in context. This class can deal with fonts using the Microsoft, Macintosh, and WorldType encodings.
Definition at line 28 of file ThaiLayoutEngine.h.
|
This constructs an instance of ThaiLayoutEngine for the given font, script and language. It examines the font, using LEFontInstance::canDisplay, to set fGlyphSet and fErrorChar. (see below)
|
|
The destructor, virtual for correct polymorphic invocation.
|
|
This method performs Thai layout. It calls ThaiShaping::compose to generate the correct contextual character codes, and then calls mapCharsToGlyphs to generate the glyph indices. Input parameters:
|
|
ICU "poor man's RTTI", returns a UClassID for the actual class.
Reimplemented from LayoutEngine. Definition at line 59 of file ThaiLayoutEngine.h. |
|
ICU "poor man's RTTI", returns a UClassID for this class.
Reimplemented from LayoutEngine. Definition at line 66 of file ThaiLayoutEngine.h. |
|
The character used as a base for vowels and tone marks that are out of sequence. Usually this will be Unicode 0x25CC, if the font can display it.
|
|
A small integer indicating which Thai encoding the font uses.
|
|
The address of this static class variable serves as this class's ID for ICU "poor man's RTTI".
Reimplemented from LayoutEngine. Definition at line 123 of file ThaiLayoutEngine.h. |