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

LayoutEngine::LayoutEngine ( const LEFontInstance fontInstance,
le_int32  scriptCode,
le_int32  languageCode,
le_int32  typoFlags,
LEErrorCode success 
) [protected]

This constructs an instance for a given font, script and language. Subclass constructors must call this constructor.

Parameters:
fontInstance - the font for the text
scriptCode - the script for the text
languageCode - the language for the text
typoFlags - the typographic control flags for the text. Set bit 1 if kerning is desired, set bit 2 if ligature formation is desired. Others are reserved.
success - set to an error code if the operation fails
See also:
LEFontInstance

ScriptAndLanguageTags.h

For internal use only.

Definition at line 137 of file LayoutEngine.cpp.

References fGlyphStorage, LE_FAILURE, LE_MEMORY_ALLOCATION_ERROR, and NULL.

  : fGlyphStorage(NULL), fFontInstance(fontInstance), fScriptCode(scriptCode), fLanguageCode(languageCode),
    fTypoFlags(typoFlags), fFilterZeroWidth(TRUE)
{
    if (LE_FAILURE(success)) {
        return;
    } 

    fGlyphStorage = new LEGlyphStorage();
    if (fGlyphStorage == NULL) {
        success = LE_MEMORY_ALLOCATION_ERROR;
    }
}


Generated by  Doxygen 1.6.0   Back to index