]>
git.saurik.com Git - apple/icu.git/blob - icuSources/layout/ExtensionSubtables.cpp
4 * (C) Copyright IBM Corp. 2002 - All Rights Reserved
9 #include "OpenTypeTables.h"
10 #include "GlyphSubstitutionTables.h"
11 #include "LookupProcessor.h"
12 #include "ExtensionSubtables.h"
13 #include "GlyphIterator.h"
19 // FIXME: should look at the format too... maybe have a sub-class for it?
20 le_uint32
ExtensionSubtable::process(const LookupProcessor
*lookupProcessor
, le_uint16 lookupType
,
21 GlyphIterator
*glyphIterator
, const LEFontInstance
*fontInstance
) const
23 le_uint16 elt
= SWAPW(extensionLookupType
);
25 if (elt
!= lookupType
) {
26 le_uint32 extOffset
= SWAPL(extensionOffset
);
27 LookupSubtable
*subtable
= (LookupSubtable
*) ((char *) this + extOffset
);
29 return lookupProcessor
->applySubtable(subtable
, elt
, glyphIterator
, fontInstance
);