os/textandloc/fontservices/textshaperplugin/IcuSource/layout/AttachmentPosnSubtables.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
 *
sl@0
     3
 * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
sl@0
     4
 *
sl@0
     5
 */
sl@0
     6
sl@0
     7
#ifndef __ATTACHMENTPOSITIONINGSUBTABLES_H
sl@0
     8
#define __ATTACHMENTPOSITIONINGSUBTABLES_H
sl@0
     9
sl@0
    10
/**
sl@0
    11
 * \file
sl@0
    12
 * \internal
sl@0
    13
 */
sl@0
    14
sl@0
    15
#include "LETypes.h"
sl@0
    16
#include "OpenTypeTables.h"
sl@0
    17
#include "GlyphPositioningTables.h"
sl@0
    18
#include "ValueRecords.h"
sl@0
    19
#include "GlyphIterator.h"
sl@0
    20
sl@0
    21
U_NAMESPACE_BEGIN
sl@0
    22
sl@0
    23
struct AttachmentPositioningSubtable : GlyphPositioningSubtable
sl@0
    24
{
sl@0
    25
    Offset    baseCoverageTableOffset;
sl@0
    26
    le_uint16 classCount;
sl@0
    27
    Offset    markArrayOffset;
sl@0
    28
    Offset    baseArrayOffset;
sl@0
    29
sl@0
    30
    inline le_int32  getBaseCoverage(LEGlyphID baseGlyphId) const;
sl@0
    31
sl@0
    32
    le_uint32 process(GlyphIterator *glyphIterator) const;
sl@0
    33
};
sl@0
    34
sl@0
    35
inline le_int32 AttachmentPositioningSubtable::getBaseCoverage(LEGlyphID baseGlyphID) const
sl@0
    36
{
sl@0
    37
    return getGlyphCoverage(baseCoverageTableOffset, baseGlyphID);
sl@0
    38
}
sl@0
    39
sl@0
    40
U_NAMESPACE_END
sl@0
    41
#endif
sl@0
    42