os/textandloc/fontservices/textshaperplugin/IcuSource/layout/ClassDefinitionTables.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/ClassDefinitionTables.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,55 @@
     1.4 +/*
     1.5 + *
     1.6 + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
     1.7 + *
     1.8 + */
     1.9 +
    1.10 +#ifndef __CLASSDEFINITIONTABLES_H
    1.11 +#define __CLASSDEFINITIONTABLES_H
    1.12 +
    1.13 +/**
    1.14 + * \file
    1.15 + * \internal
    1.16 + */
    1.17 +
    1.18 +#include "LETypes.h"
    1.19 +#include "OpenTypeTables.h"
    1.20 +
    1.21 +U_NAMESPACE_BEGIN
    1.22 +
    1.23 +struct ClassDefinitionTable
    1.24 +{
    1.25 +    le_uint16 classFormat;
    1.26 +
    1.27 +    le_int32  getGlyphClass(LEGlyphID glyphID) const;
    1.28 +    le_bool   hasGlyphClass(le_int32 glyphClass) const;
    1.29 +};
    1.30 +
    1.31 +struct ClassDefFormat1Table : ClassDefinitionTable
    1.32 +{
    1.33 +    TTGlyphID  startGlyph;
    1.34 +    le_uint16  glyphCount;
    1.35 +    le_uint16  classValueArray[ANY_NUMBER];
    1.36 +
    1.37 +    le_int32 getGlyphClass(LEGlyphID glyphID) const;
    1.38 +    le_bool  hasGlyphClass(le_int32 glyphClass) const;
    1.39 +};
    1.40 +
    1.41 +struct ClassRangeRecord
    1.42 +{
    1.43 +    TTGlyphID start;
    1.44 +    TTGlyphID end;
    1.45 +    le_uint16 classValue;
    1.46 +};
    1.47 +
    1.48 +struct ClassDefFormat2Table : ClassDefinitionTable
    1.49 +{
    1.50 +    le_uint16        classRangeCount;
    1.51 +    GlyphRangeRecord classRangeRecordArray[ANY_NUMBER];
    1.52 +
    1.53 +    le_int32 getGlyphClass(LEGlyphID glyphID) const;
    1.54 +    le_bool hasGlyphClass(le_int32 glyphClass) const;
    1.55 +};
    1.56 +
    1.57 +U_NAMESPACE_END
    1.58 +#endif