blob: 8b5f867770a4bffde85f430f811bd0b88bba1d1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/*
*
* (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
*
*/
#ifndef __STATETABLES_H
#define __STATETABLES_H
/**
* \file
* \internal
*/
#include "LETypes.h"
#include "LayoutTables.h"
U_NAMESPACE_BEGIN
struct StateTableHeader
{
le_int16 stateSize;
ByteOffset classTableOffset;
ByteOffset stateArrayOffset;
ByteOffset entryTableOffset;
};
enum ClassCodes
{
classCodeEOT = 0,
classCodeOOB = 1,
classCodeDEL = 2,
classCodeEOL = 3,
classCodeFirstFree = 4,
classCodeMAX = 0xFF
};
typedef le_uint8 ClassCode;
struct ClassTable
{
TTGlyphID firstGlyph;
le_uint16 nGlyphs;
ClassCode classArray[ANY_NUMBER];
};
enum StateNumber
{
stateSOT = 0,
stateSOL = 1,
stateFirstFree = 2,
stateMAX = 0xFF
};
typedef le_uint8 EntryTableIndex;
struct StateEntry
{
ByteOffset newStateOffset;
le_int16 flags;
};
U_NAMESPACE_END
#endif
|