]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | /* |
b75a7d8f | 2 | * |
57a6839d | 3 | * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved |
b75a7d8f A |
4 | * |
5 | */ | |
6 | ||
7 | #ifndef __COVERAGETABLES_H | |
8 | #define __COVERAGETABLES_H | |
9 | ||
10 | /** | |
11 | * \file | |
12 | * \internal | |
13 | */ | |
14 | ||
15 | #include "LETypes.h" | |
16 | #include "OpenTypeTables.h" | |
17 | ||
18 | U_NAMESPACE_BEGIN | |
19 | ||
20 | struct CoverageTable | |
21 | { | |
22 | le_uint16 coverageFormat; | |
23 | ||
24 | le_int32 getGlyphCoverage(LEGlyphID glyphID) const; | |
25 | }; | |
26 | ||
27 | struct CoverageFormat1Table : CoverageTable | |
28 | { | |
29 | le_uint16 glyphCount; | |
30 | TTGlyphID glyphArray[ANY_NUMBER]; | |
31 | ||
32 | le_int32 getGlyphCoverage(LEGlyphID glyphID) const; | |
33 | }; | |
57a6839d A |
34 | LE_VAR_ARRAY(CoverageFormat1Table, glyphArray) |
35 | ||
b75a7d8f A |
36 | |
37 | struct CoverageFormat2Table : CoverageTable | |
38 | { | |
39 | le_uint16 rangeCount; | |
40 | GlyphRangeRecord rangeRecordArray[ANY_NUMBER]; | |
41 | ||
42 | le_int32 getGlyphCoverage(LEGlyphID glyphID) const; | |
43 | }; | |
57a6839d | 44 | LE_VAR_ARRAY(CoverageFormat2Table, rangeRecordArray) |
b75a7d8f A |
45 | |
46 | U_NAMESPACE_END | |
47 | #endif |