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

[tx] cffread wrong glyph widths for CFF2 VF instance #913

Closed
blueshade7 opened this issue Aug 16, 2019 · 0 comments · Fixed by #918
Closed

[tx] cffread wrong glyph widths for CFF2 VF instance #913

blueshade7 opened this issue Aug 16, 2019 · 0 comments · Fixed by #918
Assignees

Comments

@blueshade7
Copy link
Contributor

blueshade7 commented Aug 16, 2019

cffread appears to output glyph widths for an instance of a CFF2 variable font by blending HVAR deltas using scalar values calculated from VariationStore in the CFF2 table incorrectly.
The attached font is a copy of AdobeVFPrototype.otf modified to contain regions in a shuffled order so it becomes different from that in CFF2. The font should behave functionally the same as the original.
AdobeVFPrototype_shuffled.otf.zip (replaced a bad copy)

% tx -3 -g W -U 900,0 AdobeVFPrototype_shuffled.otf
## glyph[tag] {name,encoding,path}
glyph[56] {W,U+0057,
  966 width

The glyph width 966 is incorrect, should match the width from the original:

% tx -3 -g W -U 900,0 AdobeVFPrototype.otf
## glyph[tag] {name,encoding,path}
glyph[56] {W,U+0057,
  989 width
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants