diff -r 000000000000 -r 1fb32624e06b fontservices/textshaperplugin/IcuSource/layout/AttachmentPosnSubtables.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fontservices/textshaperplugin/IcuSource/layout/AttachmentPosnSubtables.h Tue Feb 02 02:02:46 2010 +0200 @@ -0,0 +1,42 @@ +/* + * + * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved + * + */ + +#ifndef __ATTACHMENTPOSITIONINGSUBTABLES_H +#define __ATTACHMENTPOSITIONINGSUBTABLES_H + +/** + * \file + * \internal + */ + +#include "LETypes.h" +#include "OpenTypeTables.h" +#include "GlyphPositioningTables.h" +#include "ValueRecords.h" +#include "GlyphIterator.h" + +U_NAMESPACE_BEGIN + +struct AttachmentPositioningSubtable : GlyphPositioningSubtable +{ + Offset baseCoverageTableOffset; + le_uint16 classCount; + Offset markArrayOffset; + Offset baseArrayOffset; + + inline le_int32 getBaseCoverage(LEGlyphID baseGlyphId) const; + + le_uint32 process(GlyphIterator *glyphIterator) const; +}; + +inline le_int32 AttachmentPositioningSubtable::getBaseCoverage(LEGlyphID baseGlyphID) const +{ + return getGlyphCoverage(baseCoverageTableOffset, baseGlyphID); +} + +U_NAMESPACE_END +#endif +