3 * (C) Copyright IBM Corp. and Others 1998-2013 - All Rights Reserved
7 #ifndef __LIGATURESUBSTITUTION_H
8 #define __LIGATURESUBSTITUTION_H
16 #include "LayoutTables.h"
17 #include "StateTables.h"
18 #include "MorphTables.h"
19 #include "MorphStateTables.h"
23 struct LigatureSubstitutionHeader
: MorphStateTableHeader
25 ByteOffset ligatureActionTableOffset
;
26 ByteOffset componentTableOffset
;
27 ByteOffset ligatureTableOffset
;
30 struct LigatureSubstitutionHeader2
: MorphStateTableHeader2
32 le_uint32 ligActionOffset
;
33 le_uint32 componentOffset
;
34 le_uint32 ligatureOffset
;
37 enum LigatureSubstitutionFlags
39 lsfSetComponent
= 0x8000,
40 lsfDontAdvance
= 0x4000,
41 lsfActionOffsetMask
= 0x3FFF, // N/A in morx
42 lsfPerformAction
= 0x2000
45 struct LigatureSubstitutionStateEntry
: StateEntry
49 struct LigatureSubstitutionStateEntry2
51 le_uint16 nextStateIndex
;
53 le_uint16 ligActionIndex
;
56 typedef le_uint32 LigatureActionEntry
;
58 enum LigatureActionFlags
61 lafStore
= 0x40000000,
62 lafComponentOffsetMask
= 0x3FFFFFFF