]> git.saurik.com Git - apple/icu.git/blob - icuSources/layout/OpenTypeTables.h
ICU-8.11.1.tar.gz
[apple/icu.git] / icuSources / layout / OpenTypeTables.h
1 /*
2 *
3 * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
4 *
5 */
6
7 #ifndef __OPENTYPETABLES_H
8 #define __OPENTYPETABLES_H
9
10 /**
11 * \file
12 * \internal
13 */
14
15 #include "LETypes.h"
16
17 U_NAMESPACE_BEGIN
18
19 #define ANY_NUMBER 1
20
21 typedef le_uint16 Offset;
22 typedef le_uint8 ATag[4];
23 typedef le_uint32 fixed32;
24 typedef le_uint32 FeatureMask;
25
26 #define SWAPT(atag) ((LETag) ((atag[0] << 24) + (atag[1] << 16) + (atag[2] << 8) + atag[3]))
27
28 struct TagAndOffsetRecord
29 {
30 ATag tag;
31 Offset offset;
32 };
33
34 struct GlyphRangeRecord
35 {
36 TTGlyphID firstGlyph;
37 TTGlyphID lastGlyph;
38 le_int16 rangeValue;
39 };
40
41 struct FeatureMap
42 {
43 LETag tag;
44 FeatureMask mask;
45 };
46
47 U_NAMESPACE_END
48 #endif