]> git.saurik.com Git - apple/icu.git/blob - icuSources/layout/GlyphSubstitutionTables.h
ICU-6.2.16.tar.gz
[apple/icu.git] / icuSources / layout / GlyphSubstitutionTables.h
1 /*
2 *
3 * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
4 *
5 */
6
7 #ifndef __GLYPHSUBSTITUTIONTABLES_H
8 #define __GLYPHSUBSTITUTIONTABLES_H
9
10 /**
11 * \file
12 * \internal
13 */
14
15 #include "LETypes.h"
16 #include "LEGlyphFilter.h"
17 #include "OpenTypeTables.h"
18 #include "Lookups.h"
19 #include "GlyphLookupTables.h"
20 #include "GlyphDefinitionTables.h"
21 #include "GlyphPositionAdjustments.h"
22
23 U_NAMESPACE_BEGIN
24
25 class LEGlyphStorage;
26
27 struct GlyphSubstitutionTableHeader : public GlyphLookupTableHeader
28 {
29 le_int32 process(LEGlyphStorage &glyphStorage, le_bool rightToLeft, LETag scriptTag, LETag languageTag,
30 const GlyphDefinitionTableHeader *glyphDefinitionTableHeader,
31 const LEGlyphFilter *filter = NULL, const LETag *featureOrder = NULL) const;
32 };
33
34 enum GlyphSubstitutionSubtableTypes
35 {
36 gsstSingle = 1,
37 gsstMultiple = 2,
38 gsstAlternate = 3,
39 gsstLigature = 4,
40 gsstContext = 5,
41 gsstChainingContext = 6,
42 gsstExtension = 7,
43 gsstReverseChaining = 8
44 };
45
46 typedef LookupSubtable GlyphSubstitutionSubtable;
47
48 U_NAMESPACE_END
49 #endif