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()) {
uint32_t glyphId = it.glyphId();
BLPoint offset = it.placement();
// Do something with `glyphId` and `offset`.
it.advance();
}
}
else {
while (!it.atEnd()) {
uint32_t glyphId = it.glyphId();
// Do something with `glyphId`.
it.advance();
}
}
}

Public Members

Member Functions