1/*
2 *
3 * (C) Copyright IBM Corp. 1998-2008 - All Rights Reserved
4 *
5 */
6
7#ifndef __SUBSTITUTIONLOOKUPS_H
8#define __SUBSTITUTIONLOOKUPS_H
9
10/**
11 * \file
12 * \internal
13 */
14
15#include "LETypes.h"
16#include "LEFontInstance.h"
17#include "OpenTypeTables.h"
18#include "GlyphSubstitutionTables.h"
19#include "GlyphIterator.h"
20#include "LookupProcessor.h"
21
22U_NAMESPACE_BEGIN
23
24struct SubstitutionLookupRecord
25{
26    le_uint16  sequenceIndex;
27    le_uint16  lookupListIndex;
28};
29
30struct SubstitutionLookup
31{
32    static void applySubstitutionLookups(
33        LookupProcessor *lookupProcessor,
34        SubstitutionLookupRecord *substLookupRecordArray,
35        le_uint16 substCount,
36        GlyphIterator *glyphIterator,
37        const LEFontInstance *fontInstance,
38        le_int32 position,
39		LEErrorCode& success);
40};
41
42U_NAMESPACE_END
43#endif
44
45