os/textandloc/fontservices/textshaperplugin/IcuSource/layout/GlyphSubstitutionTables.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/GlyphSubstitutionTables.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,49 @@
1.4 +/*
1.5 + *
1.6 + * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
1.7 + *
1.8 + */
1.9 +
1.10 +#ifndef __GLYPHSUBSTITUTIONTABLES_H
1.11 +#define __GLYPHSUBSTITUTIONTABLES_H
1.12 +
1.13 +/**
1.14 + * \file
1.15 + * \internal
1.16 + */
1.17 +
1.18 +#include "LETypes.h"
1.19 +#include "OpenTypeTables.h"
1.20 +#include "Lookups.h"
1.21 +#include "GlyphLookupTables.h"
1.22 +
1.23 +U_NAMESPACE_BEGIN
1.24 +
1.25 +class LEGlyphStorage;
1.26 +class LEGlyphFilter;
1.27 +struct GlyphDefinitionTableHeader;
1.28 +
1.29 +struct GlyphSubstitutionTableHeader : public GlyphLookupTableHeader
1.30 +{
1.31 + le_int32 process(LEGlyphStorage &glyphStorage, le_bool rightToLeft, LETag scriptTag, LETag languageTag,
1.32 + const GlyphDefinitionTableHeader *glyphDefinitionTableHeader,
1.33 + LEErrorCode &success,
1.34 + const LEGlyphFilter *filter = NULL, const LETag *featureOrder = NULL) const;
1.35 +};
1.36 +
1.37 +enum GlyphSubstitutionSubtableTypes
1.38 +{
1.39 + gsstSingle = 1,
1.40 + gsstMultiple = 2,
1.41 + gsstAlternate = 3,
1.42 + gsstLigature = 4,
1.43 + gsstContext = 5,
1.44 + gsstChainingContext = 6,
1.45 + gsstExtension = 7,
1.46 + gsstReverseChaining = 8
1.47 +};
1.48 +
1.49 +typedef LookupSubtable GlyphSubstitutionSubtable;
1.50 +
1.51 +U_NAMESPACE_END
1.52 +#endif