2
* @(#)MarkArrays.cpp 1.5 00/03/15
4
* (C) Copyright IBM Corp. 1998, 1999, 2000, 2001 - All Rights Reserved
9
#include "LEFontInstance.h"
10
#include "OpenTypeTables.h"
11
#include "AnchorTables.h"
12
#include "MarkArrays.h"
17
le_int32 MarkArray::getMarkClass(LEGlyphID glyphID, le_int32 coverageIndex, const LEFontInstance *fontInstance,
18
LEPoint &anchor) const
20
le_int32 markClass = -1;
22
if (coverageIndex >= 0) {
23
le_uint16 mCount = SWAPW(markCount);
25
if (coverageIndex < mCount) {
26
const MarkRecord *markRecord = &markRecordArray[coverageIndex];
27
Offset anchorTableOffset = SWAPW(markRecord->markAnchorTableOffset);
28
const AnchorTable *anchorTable = (AnchorTable *) ((char *) this + anchorTableOffset);
30
anchorTable->getAnchor(glyphID, fontInstance, anchor);
31
markClass = SWAPW(markRecord->markClass);
34
// XXXX If we get here, the table is mal-formed