1c9f0bf8a3
X-SVN-Rev: 3021
55 lines
1.6 KiB
C++
55 lines
1.6 KiB
C++
/*
|
|
* %W% %E%
|
|
*
|
|
* (C) Copyright IBM Corp. 1998, 1999, 2000 - All Rights Reserved
|
|
*
|
|
*/
|
|
|
|
#ifndef __LOOKUPPROCESSOR_H
|
|
#define __LOOKUPPROCESSOR_H
|
|
|
|
#include "LETypes.h"
|
|
#include "LEFontInstance.h"
|
|
#include "OpenTypeTables.h"
|
|
#include "Lookups.h"
|
|
#include "Features.h"
|
|
#include "GlyphDefinitionTables.h"
|
|
#include "GlyphPositionAdjustments.h"
|
|
#include "GlyphIterator.h"
|
|
|
|
class LookupProcessor
|
|
{
|
|
public:
|
|
static LETag notSelected;
|
|
static LETag defaultFeature;
|
|
|
|
void process(LEGlyphID *glyphs, GlyphPositionAdjustment *glyphPositionAdjustments, const LETag **glyphTags, le_int32 glyphCount,
|
|
le_bool rightToLeft, GlyphDefinitionTableHeader *glyphDefinitionTableHeader, LEFontInstance *fontInstance);
|
|
|
|
le_uint32 applyLookupTable(LookupTable *lookupTable, GlyphIterator *glyphIterator, LEFontInstance *fontInstance);
|
|
|
|
le_uint32 applySingleLookup(le_uint16 lookupTableIndex, GlyphIterator *glyphIterator, LEFontInstance *fontInstance);
|
|
|
|
virtual le_uint32 applySubtable(LookupSubtable *lookupSubtable, le_uint16 subtableType,
|
|
GlyphIterator *glyphIterator, LEFontInstance *fontInstance) = 0;
|
|
|
|
virtual ~LookupProcessor();
|
|
|
|
protected:
|
|
LookupProcessor(char *baseAddress,
|
|
Offset scriptListOffset, Offset featureListOffset, Offset lookupListOffset,
|
|
LETag scriptTag, LETag languageTag);
|
|
|
|
LookupProcessor();
|
|
|
|
LETag selectFeature(le_uint16 featureIndex, LETag tagOverride = notSelected);
|
|
|
|
LookupListTable *lookupListTable;
|
|
FeatureListTable *featureListTable;
|
|
|
|
LETag *lookupSelectArray;
|
|
LETag requiredFeatureTag;
|
|
};
|
|
|
|
#endif
|