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

Iterating through all kerning values #55

Closed
mooman219 opened this issue May 3, 2021 · 2 comments
Closed

Iterating through all kerning values #55

mooman219 opened this issue May 3, 2021 · 2 comments

Comments

@mooman219
Copy link

mooman219 commented May 3, 2021

The ttf_parser::kern::Subtable API allows you to get the kerning information for two ordered glyphs.

Given stateful kerning (format 1) is unsupported, would it be reasonable to add API to iterate through all kerning pairs in a subtable? This is definitely trivial for format 0, but I haven't looked into 2 and 3.

@RazrFalcon
Copy link
Owner

Yes, this is a good idea.

@RazrFalcon
Copy link
Owner

A lot later, but this feature is supported now. Only for format 0 at the moment.
In the latest release I've decided to finally expose all the internal data tables. So you can skip all the ttf_parser::Face logic and work directly with TrueType tables. It's still pretty rough, but a good start.

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

No branches or pull requests

2 participants