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

GDEF IVS deltas are not applied to GPOS adjustments? #156

Open
simoncozens opened this issue Feb 6, 2025 · 0 comments
Open

GDEF IVS deltas are not applied to GPOS adjustments? #156

simoncozens opened this issue Feb 6, 2025 · 0 comments

Comments

@simoncozens
Copy link
Contributor

Given the attached Oswald-VF.ttf.gz:

$ hb-shape Oswald-VF.ttf AV --features=-kern
[A=0+492|V=1+505]
$ hb-shape Oswald-VF.ttf AV
[A=0+453|V=1+505]
$ ./target/debug/examples/shape  Oswald-VF.ttf AV
A=0+453|V=1+505

# Getting advance width with variations is OK:

$ hb-shape Oswald-VF.ttf AV --features=-kern --variations=wght=700
[A=0+551|V=1+526]
$ ./target/debug/examples/shape Oswald-VF.ttf AV --features=-kern --variations=wght=700
A=0+551|V=1+526

# However, deltas are not being applied to GPOS adjustments

$ hb-shape Oswald-VF.ttf AV --features=+kern --variations=wght=700
[A=0+517|V=1+526]
$ ./target/debug/examples/shape Oswald-VF.ttf AV --features=+kern --variations=wght=700
A=0+512|V=1+526

As we can see, the font at default location has a 39 unit kern. It looks like Rustybuzz is still applying a 39 unit kern despite the fact that GDEF deltas will apply to the GPOS kerning value. Try it again at wght=200 and we still see a 39 unit kern:

$ ./target/debug/examples/shape Oswald-VF.ttf AV --features=-kern --variations=wght=200
A=0+468|V=1+480
$ ./target/debug/examples/shape Oswald-VF.ttf AV --features=+kern --variations=wght=200
A=0+429|V=1+480
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

1 participant