2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
*
|
2004-05-07 23:29:16 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CLASSDEFINITIONTABLES_H
|
|
|
|
#define __CLASSDEFINITIONTABLES_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 ClassDefinitionTable
|
|
|
|
{
|
|
|
|
le_uint16 classFormat;
|
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
le_int32 getGlyphClass(LEGlyphID glyphID) const;
|
|
|
|
le_bool hasGlyphClass(le_int32 glyphClass) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ClassDefFormat1Table : ClassDefinitionTable
|
|
|
|
{
|
2003-02-05 00:05:40 +00:00
|
|
|
TTGlyphID startGlyph;
|
2000-11-28 20:56:52 +00:00
|
|
|
le_uint16 glyphCount;
|
|
|
|
le_uint16 classValueArray[ANY_NUMBER];
|
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
le_int32 getGlyphClass(LEGlyphID glyphID) const;
|
|
|
|
le_bool hasGlyphClass(le_int32 glyphClass) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ClassRangeRecord
|
|
|
|
{
|
2003-02-05 00:05:40 +00:00
|
|
|
TTGlyphID start;
|
|
|
|
TTGlyphID end;
|
2000-11-28 20:56:52 +00:00
|
|
|
le_uint16 classValue;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ClassDefFormat2Table : ClassDefinitionTable
|
|
|
|
{
|
|
|
|
le_uint16 classRangeCount;
|
|
|
|
GlyphRangeRecord classRangeRecordArray[ANY_NUMBER];
|
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
le_int32 getGlyphClass(LEGlyphID glyphID) const;
|
|
|
|
le_bool hasGlyphClass(le_int32 glyphClass) 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
|