3 * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
8 #include "OpenTypeTables.h"
10 #include "CoverageTables.h"
15 const LookupTable
*LookupListTable::getLookupTable(le_uint16 lookupTableIndex
) const
17 if (lookupTableIndex
>= SWAPW(lookupCount
)) {
21 Offset lookupTableOffset
= lookupTableOffsetArray
[lookupTableIndex
];
23 return (const LookupTable
*) ((char *) this + SWAPW(lookupTableOffset
));
26 const LookupSubtable
*LookupTable::getLookupSubtable(le_uint16 subtableIndex
) const
28 if (subtableIndex
>= SWAPW(subTableCount
)) {
32 Offset subtableOffset
= subTableOffsetArray
[subtableIndex
];
34 return (const LookupSubtable
*) ((char *) this + SWAPW(subtableOffset
));
37 le_int32
LookupSubtable::getGlyphCoverage(Offset tableOffset
, LEGlyphID glyphID
) const
39 const CoverageTable
*coverageTable
= (const CoverageTable
*) ((char *) this + SWAPW(tableOffset
));
41 return coverageTable
->getGlyphCoverage(glyphID
);