]> git.saurik.com Git - apple/icu.git/blame - icuSources/layout/CoverageTables.h
ICU-551.51.tar.gz
[apple/icu.git] / icuSources / layout / CoverageTables.h
CommitLineData
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
18U_NAMESPACE_BEGIN
19
20struct CoverageTable
21{
22 le_uint16 coverageFormat;
23
24 le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
25};
26
27struct CoverageFormat1Table : CoverageTable
28{
29 le_uint16 glyphCount;
30 TTGlyphID glyphArray[ANY_NUMBER];
31
32 le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
33};
57a6839d
A
34LE_VAR_ARRAY(CoverageFormat1Table, glyphArray)
35
b75a7d8f
A
36
37struct CoverageFormat2Table : CoverageTable
38{
39 le_uint16 rangeCount;
40 GlyphRangeRecord rangeRecordArray[ANY_NUMBER];
41
42 le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
43};
57a6839d 44LE_VAR_ARRAY(CoverageFormat2Table, rangeRecordArray)
b75a7d8f
A
45
46U_NAMESPACE_END
47#endif