os/textandloc/fontservices/textshaperplugin/IcuSource/layout/AttachmentPosnSubtables.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/AttachmentPosnSubtables.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,42 @@
1.4 +/*
1.5 + *
1.6 + * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
1.7 + *
1.8 + */
1.9 +
1.10 +#ifndef __ATTACHMENTPOSITIONINGSUBTABLES_H
1.11 +#define __ATTACHMENTPOSITIONINGSUBTABLES_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 +#include "GlyphPositioningTables.h"
1.21 +#include "ValueRecords.h"
1.22 +#include "GlyphIterator.h"
1.23 +
1.24 +U_NAMESPACE_BEGIN
1.25 +
1.26 +struct AttachmentPositioningSubtable : GlyphPositioningSubtable
1.27 +{
1.28 + Offset baseCoverageTableOffset;
1.29 + le_uint16 classCount;
1.30 + Offset markArrayOffset;
1.31 + Offset baseArrayOffset;
1.32 +
1.33 + inline le_int32 getBaseCoverage(LEGlyphID baseGlyphId) const;
1.34 +
1.35 + le_uint32 process(GlyphIterator *glyphIterator) const;
1.36 +};
1.37 +
1.38 +inline le_int32 AttachmentPositioningSubtable::getBaseCoverage(LEGlyphID baseGlyphID) const
1.39 +{
1.40 + return getGlyphCoverage(baseCoverageTableOffset, baseGlyphID);
1.41 +}
1.42 +
1.43 +U_NAMESPACE_END
1.44 +#endif
1.45 +