Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_NAMESPACE_BEGIN KhmerOpenTypeLayoutEngine::KhmerOpenTypeLayoutEngine ( const LEFontInstance fontInstance,
le_int32  scriptCode,
le_int32  languageCode,
le_int32  typoFlags,
const GlyphSubstitutionTableHeader *  gsubTable,
LEErrorCode success 
)

This is the main constructor. It constructs an instance of KhmerOpenTypeLayoutEngine for a particular font, script and language. It takes the GSUB table as a parameter since LayoutEngine::layoutEngineFactory has to read the GSUB table to know that it has an Khmer OpenType font.

Parameters:
fontInstance - the font
scriptCode - the script
langaugeCode - the language
gsubTable - the GSUB table
success - set to an error code if the operation fails
See also:
LayoutEngine::layoutEngineFactory

OpenTypeLayoutEngine

ScriptAndLangaugeTags.h for script and language codes

For internal use only.

Definition at line 20 of file KhmerLayoutEngine.cpp.

References TRUE.

    : OpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, gsubTable, success)
{
    fFeatureMap   = KhmerReordering::getFeatureMap(fFeatureMapCount);
    fFeatureOrder = TRUE;
}


Generated by  Doxygen 1.6.0   Back to index