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

Preflight hinting #26

Open
m4rc1e opened this issue Feb 17, 2020 · 5 comments
Open

Preflight hinting #26

m4rc1e opened this issue Feb 17, 2020 · 5 comments

Comments

@m4rc1e
Copy link

m4rc1e commented Feb 17, 2020

It would be nice to have vttLib preflight to check whether hinting will compile for a given font. I'd expect the output to show incompatible glyphs and also glyphs which use SOFTOFFSET.

Such a tool would allow me to produce a list of problematic glyphs I can send to a hinter to get fixed.

Happy to submit a pr if you think it's useful.

@m4rc1e
Copy link
Author

m4rc1e commented Feb 17, 2020

Another approach is to just log all the glyphs which cannot be compiled when running vttLib compile. Atm, vtt compile will raise an error and terminate on the first glyph it cannot compile.

@madig
Copy link
Contributor

madig commented Mar 25, 2021

PR welcome :)

@m4rc1e
Copy link
Author

m4rc1e commented Mar 25, 2021

Ended up writing a gftools script for this task, https://github.com/googlefonts/gftools/blob/main/bin/gftools-check-vtt-compile.py

Can improve and transfer it to this repo but I may be a bit slow due to other tasks.

@m4rc1e
Copy link
Author

m4rc1e commented Mar 25, 2021

Also looks like it was written in an ad hoc/dirty manner so it should be improved.

@madig
Copy link
Contributor

madig commented Mar 25, 2021

Take your time :)

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