Skip to content

[psCharStrings] Inherit CFF2 vsindex from Private DICT - #4328

Merged
behdad merged 1 commit into
fonttools:mainfrom
vera-rubin:fix/cff2-inherited-vsindex
Oct 18, 2026
Merged

behdad merged 1 commit into
fonttools:mainfrom
vera-rubin:fix/cff2-inherited-vsindex

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

getGlyphSet(location=...) draws CFF2 blends with region list 0 when the CharString inherits vsindex=1 from its Private DICT, leaving the outline at default coordinates when only list 1 is active. CFF2 specifies that the Private DICT selects the regions unless the CharString overrides it.

We initialize the current index from the Private DICT when the first blend resolves its regions, retaining zero as the fallback.

We added a regression covering inherited indices and explicit overrides and ran the relevant CharString, glyph set, CFF, instancer, and Type 1 tests.

— ChipLab

@behdad
behdad merged commit 131fbf4 into fonttools:main Oct 18, 2026
13 checks passed
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

Successfully merging this pull request may close these issues.

2 participants