Skip to content

Support static VARC variation axes - #2142

Open
behdad wants to merge 1 commit into
mainfrom
varc-static-axes
Open

behdad wants to merge 1 commit into
mainfrom
varc-static-axes

Conversation

@behdad

@behdad behdad commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

VARC permits a static font to omit fvar while retaining gvar or CFF2 variation data for component-internal coordinates. Skrifa previously sized the VARC coordinate array only from font.axes(), so a component axis override in such a font failed as malformed.

Derive the internal axis count from gvar or the CFF2 VariationStore and combine it with the public fvar count. The regression fixture has one hidden gvar axis and no fvar; its VARC component sets that axis to 0.5 and the test verifies the resulting 50-unit outline shift.

Validation:

  • cargo fmt --all -- --check
  • cargo test -p skrifa outline::varc::tests

@behdad
behdad requested a review from dfrg September 14, 2026 20:59
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.

1 participant