googlefonts / googlefonts/fontc

[glyphs] Generate STAT axis values from instances, matching glyphsLib >= 6.14

Open
#2,078 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
193
Forks
21
Avg merge
1d 17h
Merged PRs (30d)
65

Description

glyphsLib now auto-generates STAT data from a Glyphs source's instances (googlefonts/glyphsLib#1158, in v6.14.0): one AxisValue per distinct instance coordinate on each axis, the default value elided, and a STAT-only `ital` axis pinned at 0, or 1 for an italic family.
It also honours the `Export STAT Table`, `Elidable STAT Axis Value Name` and `Style Name as STAT entry` custom parameters.

fontc writes only a stub with design axis records but no axis values (see `fontbe/src/stat.rs` comment "we support only a very simple STAT at time of writing"), unless a STAT table block arrives via FEA.

So as soon as we bump past the pinned glyphsLib 6.13.1, every Glyphs source with Variable Font Settings instances will get a STAT that differs from fontmake's.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in fontbe/src/stat.rs, especially the comment that only a simple STAT table is supported, and compare the requested behavior with glyphsLib 6.14. Review how Glyphs instances and custom parameters reach fontc, including FEA-provided STAT data. Done means generated STAT tables include the described axis values and ital behavior while honoring the listed parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.