2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
* @(#)CoverageTables.h 1.4 00/03/15
|
|
|
|
*
|
2003-06-03 20:58:22 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __COVERAGETABLES_H
|
|
|
|
#define __COVERAGETABLES_H
|
|
|
|
|
2003-01-13 23:15:11 +00:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \internal
|
|
|
|
*/
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "LETypes.h"
|
|
|
|
#include "OpenTypeTables.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
struct CoverageTable
|
|
|
|
{
|
|
|
|
le_uint16 coverageFormat;
|
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct CoverageFormat1Table : CoverageTable
|
|
|
|
{
|
|
|
|
le_uint16 glyphCount;
|
2003-02-05 00:05:40 +00:00
|
|
|
TTGlyphID glyphArray[ANY_NUMBER];
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct CoverageFormat2Table : CoverageTable
|
|
|
|
{
|
2003-02-05 00:05:40 +00:00
|
|
|
le_uint16 rangeCount;
|
|
|
|
GlyphRangeRecord rangeRecordArray[ANY_NUMBER];
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|
2000-11-28 20:56:52 +00:00
|
|
|
#endif
|