4
* (C) Copyright IBM Corp. 1998, 1999, 2000, 2001 - All Rights Reserved
8
#ifndef __GLYPHITERATOR_H
9
#define __GLYPHITERATOR_H
12
#include "OpenTypeTables.h"
13
#include "GlyphDefinitionTables.h"
14
#include "GlyphPositionAdjustments.h"
21
GlyphIterator(LEGlyphID *theGlyphs, GlyphPositionAdjustment *theGlyphPositionAdjustments, le_int32 theGlyphCount,
22
le_bool rightToLeft, le_uint16 theLookupFlags, LETag theFeatureTag, const LETag *theGlyphTags[],
23
const GlyphDefinitionTableHeader *theGlyphDefinitionTableHeader);
25
GlyphIterator(GlyphIterator &that);
27
GlyphIterator(GlyphIterator &that, le_uint16 newLookupFlags);
31
le_bool next(le_uint32 delta = 1);
32
le_bool prev(le_uint32 delta = 1);
33
le_bool findFeatureTag();
35
le_bool isRightToLeft() const;
36
le_bool ignoresMarks() const;
38
LEGlyphID getCurrGlyphID() const;
39
le_int32 getCurrStreamPosition() const;
40
void getCurrGlyphPositionAdjustment(GlyphPositionAdjustment& adjustment) const;
42
le_int32 getMarkComponent(le_int32 markPosition) const;
44
void setCurrGlyphID(LEGlyphID glyphID);
45
void setCurrStreamPosition(le_int32 position);
46
void setCurrGlyphPositionAdjustment(const GlyphPositionAdjustment *adjustment);
47
void adjustCurrGlyphPositionAdjustment(float xPlacmentAdjust, float yPlacementAdjust,
48
float xAdvanceAdjust, float yAdvanceAdjust);
52
le_bool filterGlyph(le_uint32 index) const;
53
le_bool hasFeatureTag() const;
54
le_bool nextInternal(le_uint32 delta = 1);
55
le_bool prevInternal(le_uint32 delta = 1);
62
GlyphPositionAdjustment *glyphPositionAdjustments;
63
le_uint16 lookupFlags;
65
const LETag **glyphTags;
66
const GlyphClassDefinitionTable *glyphClassDefinitionTable;
67
const MarkAttachClassDefinitionTable *markAttachClassDefinitionTable;