Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed kerning advance in fonts with both GPOS and kern tables. #1705

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joaodasilva
Copy link

Notably, Segoe on Windows has kerning advances in the kern tables, but also has a GPOS table. The pair of characters aren't the same in each table.

Compare the string "STB TrueType Text Renderer" in the Windows window title and the STB render inside the window:

before

Compare to the STB render after the fix; notice the kerning advance between "T" and "r", and "T" and "e":

after

(the first STB line uses Subpixel advances, the second line doesn't)

Notably, SegoeUI on Windows has kerning advances in the kern tables, but
also has a GPOS table. The pair of characters aren't the same in each
table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant