BLGlyphRunIterator Class Reference

A helper to iterate over a BLGlyphRun.

Takes into consideration glyph-id advance and glyph-offset advance.

Example:

void inspectGlyphRun(const BLGlyphRun& glyphRun) noexcept {
BLGlyphRunIterator it(glyphRun);
if (it.hasOffsets()) {
while (!it.atEnd()) {
BLGlyphId glyphId = it.glyphId();
BLPoint offset = it.placement();
// Do something with `glyphId` and `offset`.
it.advance();
}
}
else {
while (!it.atEnd()) {
BLGlyphId glyphId = it.glyphId();
// Do something with `glyphId`.
it.advance();
}
}
}

Public Members

Members

Member Functions

Construction & Destruction
Common Functionality
Accessors
Iterator Interface