os/textandloc/fontservices/textshaperplugin/IcuSource/layout/GlyphSubstitutionTables.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/GlyphSubstitutionTables.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,40 @@
     1.4 +/*
     1.5 + *
     1.6 + * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
     1.7 + *
     1.8 + */
     1.9 +
    1.10 +#include "LETypes.h"
    1.11 +#include "LEGlyphFilter.h"
    1.12 +#include "OpenTypeTables.h"
    1.13 +#include "Lookups.h"
    1.14 +#include "GlyphDefinitionTables.h"
    1.15 +#include "GlyphSubstitutionTables.h"
    1.16 +#include "GlyphSubstLookupProc.h"
    1.17 +#include "ScriptAndLanguage.h"
    1.18 +#include "LEGlyphStorage.h"
    1.19 +#include "LESwaps.h"
    1.20 +
    1.21 +U_NAMESPACE_BEGIN
    1.22 +
    1.23 +le_int32 GlyphSubstitutionTableHeader::process(LEGlyphStorage &glyphStorage, le_bool rightToLeft, LETag scriptTag, LETag languageTag,
    1.24 +                                           const GlyphDefinitionTableHeader *glyphDefinitionTableHeader,
    1.25 +                                           LEErrorCode &success,
    1.26 +                                           const LEGlyphFilter *filter, const LETag *featureOrder) const
    1.27 +{
    1.28 +    if (LE_FAILURE(success)) {
    1.29 +        return 0;
    1.30 +    }
    1.31 +
    1.32 +    GlyphSubstitutionLookupProcessor processor(this, scriptTag, languageTag, filter, featureOrder);
    1.33 +
    1.34 +    if (processor.isBogus()) {
    1.35 +        success = LE_MEMORY_ALLOCATION_ERROR;
    1.36 +    	return 0;
    1.37 +    }
    1.38 +
    1.39 +    return processor.process(glyphStorage, NULL, rightToLeft,
    1.40 +        glyphDefinitionTableHeader, NULL, success);
    1.41 +}
    1.42 +
    1.43 +U_NAMESPACE_END