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