Update contrib.
4 * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
8 #ifndef __LOOKUPPROCESSOR_H
9 #define __LOOKUPPROCESSOR_H
17 #include "LEFontInstance.h"
18 #include "OpenTypeTables.h"
19 //#include "Lookups.h"
20 //#include "Features.h"
27 class GlyphPositionAdjustments;
29 struct FeatureListTable;
30 struct GlyphDefinitionTableHeader;
31 struct LookupSubtable;
34 class LookupProcessor : public UMemory {
36 static const LETag notSelected;
37 static const LETag defaultFeature;
41 le_int32 process(LEGlyphStorage &glyphStorage,
42 GlyphPositionAdjustments *glyphPositionAdjustments, le_bool rightToLeft,
43 const GlyphDefinitionTableHeader *glyphDefinitionTableHeader,
44 const LEFontInstance *fontInstance, LEErrorCode& success) const;
46 le_uint32 applyLookupTable(const LookupTable *lookupTable, GlyphIterator *glyphIterator,
47 const LEFontInstance *fontInstance, LEErrorCode& success) const;
49 le_uint32 applySingleLookup(le_uint16 lookupTableIndex, GlyphIterator *glyphIterator,
50 const LEFontInstance *fontInstance, LEErrorCode& success) const;
52 virtual le_uint32 applySubtable(const LookupSubtable *lookupSubtable, le_uint16 subtableType,
53 GlyphIterator *glyphIterator, const LEFontInstance *fontInstance,
54 LEErrorCode& success) const = 0;
56 virtual ~LookupProcessor();
59 LookupProcessor(const char *baseAddress,
60 Offset scriptListOffset, Offset featureListOffset, Offset lookupListOffset,
61 LETag scriptTag, LETag languageTag, const LETag *featureOrder);
65 le_int32 selectLookups(const FeatureTable *featureTable, LETag featureTag, le_int32 order);
67 const LookupListTable *lookupListTable;
68 const FeatureListTable *featureListTable;
70 LETag *lookupSelectArray;
71 LETag requiredFeatureTag;
73 le_uint16 *lookupOrderArray;
74 le_uint32 lookupOrderCount;
78 LookupProcessor(const LookupProcessor &other); // forbid copying of this class
79 LookupProcessor &operator=(const LookupProcessor &other); // forbid copying of this class