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