#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... | |
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... |
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 26 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:
Reimplemented from LayoutEngine. |
|
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.
Definition at line 65 of file ThaiLayoutEngine.h. |
|
A small integer indicating which Thai encoding the font uses.
Definition at line 55 of file ThaiLayoutEngine.h. |