Skip to content

[glyf] Only set USE_MY_METRICS flag for static fonts, not variable fonts#1615

Merged
anthrotype merged 2 commits into
mainfrom
no-use-my-metrics-for-vf
Aug 27, 2025
Merged

[glyf] Only set USE_MY_METRICS flag for static fonts, not variable fonts#1615
anthrotype merged 2 commits into
mainfrom
no-use-my-metrics-for-vf

Conversation

@anthrotype

@anthrotype anthrotype commented Aug 26, 2025

Copy link
Copy Markdown
Member

The USE_MY_METRICS flag is primarily useful for hinted fonts where composite glyphs should reuse the hinted metrics of one of their components.

Since fontc doesn't support hinting, and the flag can be dangerous in variable fonts where composite and component metrics may differ across masters, we now only set the flag for static fonts to match fontmake's legacy behavior.

We plan to change fontmake to do the same for variable fonts as well.

Fixes #1614

The USE_MY_METRICS flag is primarily useful for hinted fonts where composite glyphs should reuse the hinted metrics of their components.

Since fontc doesn't support hinting, and the flag can be dangerous in variable fonts where composite and component metrics may differ across masters, we now only set the flag for static fonts to match fontmake's legacy behavior.

We plan to change fontmake to do the same for variable fonts as well.

Fixes #1614
Comment thread fontc/src/lib.rs Outdated
@anthrotype anthrotype force-pushed the no-use-my-metrics-for-vf branch from bd08b9d to 75134a7 Compare August 26, 2025 16:55
@anthrotype anthrotype added this pull request to the merge queue Aug 26, 2025
@anthrotype anthrotype removed this pull request from the merge queue due to a manual request Aug 26, 2025
@anthrotype

Copy link
Copy Markdown
Member Author

we should hold merging this until we do the corresponding change in ufo2ft

@anthrotype

Copy link
Copy Markdown
Member Author

i'll work on it tomorrow

@anthrotype

Copy link
Copy Markdown
Member Author

@anthrotype anthrotype added this pull request to the merge queue Aug 27, 2025
Merged via the queue into main with commit 387378c Aug 27, 2025
12 checks passed
@anthrotype anthrotype deleted the no-use-my-metrics-for-vf branch August 27, 2025 17:28
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.

Variable fonts: never set USE_MY_METRICS flag on component in glyf table

2 participants