Home | History | Annotate | Download | only in layout
      1 /*
      2  *
      3  * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
      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 
     18 U_NAMESPACE_BEGIN
     19 
     20 struct CoverageTable
     21 {
     22     le_uint16 coverageFormat;
     23 
     24     le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
     25 };
     26 
     27 struct CoverageFormat1Table : CoverageTable
     28 {
     29     le_uint16  glyphCount;
     30     TTGlyphID glyphArray[ANY_NUMBER];
     31 
     32     le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
     33 };
     34 
     35 struct CoverageFormat2Table : CoverageTable
     36 {
     37     le_uint16        rangeCount;
     38     GlyphRangeRecord rangeRecordArray[ANY_NUMBER];
     39 
     40     le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
     41 };
     42 
     43 U_NAMESPACE_END
     44 #endif
     45