A helper to iterate over a BLGlyphRun
.
Takes into consideration glyph-id advance and glyph-offset advance.
Example:
void inspectGlyphRun(
const BLGlyphRun& glyphRun)
noexcept {
if (it.hasOffsets()) {
while (!it.atEnd()) {
it.advance();
}
}
else {
while (!it.atEnd()) {
it.advance();
}
}
}
intptr_t placementAdvance
bool hasPlacement()
const const T& placement() const