Skip to content

Different width of the same string with leading and trailing spaces #349

Answered by JimBobSquarePants
Bykiev asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, that's perfectly possible.

It's due to the advance on e.

When measuring the first string the advance will be discounted since we're only measuring the size and it's the last glyph however you cannot ignore that advance when measuring the glyph when there are following glyphs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bykiev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants