mirror of https://github.com/mosra/magnum.git
Browse Source
Funnily enough the comment next to the relevant test case said that
"Left is the default, thus should result in no shift" AND YET right
after there was a shift of -10.0f. Done in the original commit in
568a4205a6 (2023) already, and I don't
remember what was actually the intent.
The glyph offset *is* discarded if GlyphBounds is specified, as that
might still make sense in certain contexts.
A glyph offset is non-zero usually for combining characters, with
regular base characters it's rare. It might however be useful for icon
fonts for example, where narrower icons might have an extra offsets to
make them visually align with wider icons when put underneath each other
and aligned to the left.
next
2 changed files with 13 additions and 6 deletions
Loading…
Reference in new issue