os/textandloc/fontservices/textshaperplugin/IcuSource/layout/SubstitutionLookups.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2  *
     3  * (C) Copyright IBM Corp. 1998-2004 - 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 
    22 U_NAMESPACE_BEGIN
    23 
    24 struct SubstitutionLookupRecord
    25 {
    26     le_uint16  sequenceIndex;
    27     le_uint16  lookupListIndex;
    28 };
    29 
    30 struct 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 
    42 U_NAMESPACE_END
    43 #endif
    44