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

OTF feature tags #74

Open
emilk opened this issue Feb 2, 2023 · 2 comments
Open

OTF feature tags #74

emilk opened this issue Feb 2, 2023 · 2 comments

Comments

@emilk
Copy link

emilk commented Feb 2, 2023

OTF files have feature flags, like tnum.

It would be wonderful to be able to enable such flags in ab-glyph

@alexheretic
Copy link
Owner

Yet it would be nice to have. The first step would be figuring out exactly how they work using ttf-parser crate.

@simoncozens
Copy link

You're going to need a shaping engine like harfbuzz_rs/rustybuzz/allsorts to execute the substitution and positioning rules in the GSUB/GPOS tables stored with each feature. It does get very complicated (particularly with lookup flags and especially with complex scripts), so I would advise against trying to implement shaping in this crate / with ttf-parser.

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

3 participants