3 * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved
7 #ifndef __SINGLESUBSTITUTIONSUBTABLES_H
8 #define __SINGLESUBSTITUTIONSUBTABLES_H
16 #include "LEGlyphFilter.h"
17 #include "OpenTypeTables.h"
18 #include "GlyphSubstitutionTables.h"
19 #include "GlyphIterator.h"
23 struct SingleSubstitutionSubtable : GlyphSubstitutionSubtable
25 le_uint32 process(const LEReferenceTo<SingleSubstitutionSubtable> &base, GlyphIterator *glyphIterator, LEErrorCode &success, const LEGlyphFilter *filter = NULL) const;
28 struct SingleSubstitutionFormat1Subtable : SingleSubstitutionSubtable
30 le_int16 deltaGlyphID;
32 le_uint32 process(const LEReferenceTo<SingleSubstitutionFormat1Subtable> &base, GlyphIterator *glyphIterator, LEErrorCode &success, const LEGlyphFilter *filter = NULL) const;
35 struct SingleSubstitutionFormat2Subtable : SingleSubstitutionSubtable
38 TTGlyphID substituteArray[ANY_NUMBER];
40 le_uint32 process(const LEReferenceTo<SingleSubstitutionFormat2Subtable> &base, GlyphIterator *glyphIterator, LEErrorCode &success, const LEGlyphFilter *filter = NULL) const;
42 LE_VAR_ARRAY(SingleSubstitutionFormat2Subtable, substituteArray)