Skip to content

Don't do autoUseMyMetrics by default for variable fonts#940

Merged
anthrotype merged 1 commit into
mainfrom
no-auto-use-my-metrics-for-vfs
Aug 27, 2025
Merged

Don't do autoUseMyMetrics by default for variable fonts#940
anthrotype merged 1 commit into
mainfrom
no-auto-use-my-metrics-for-vfs

Conversation

@anthrotype
Copy link
Copy Markdown
Member

same as googlefonts/fontmake#1154, for when ufo2ft is called programmatically as opposed to through fontmake CLI

same as googlefonts/fontmake#1154, for when ufo2ft is called programmatically as opposed to through fontmake CLI
@anthrotype
Copy link
Copy Markdown
Member Author

anthrotype commented Aug 27, 2025

changing a default value (autoUseMyMetrics from False to True for interpolatable/variable builds) is a breaking change in theory, but I'd argue that this is more like a bug fix. The current implementation of computing the USE_MY_METRICS for each individual master independently from one another is what lead to the bug that fonttools/fonttools#3912 is working around. It was a benign bug most of the time, because the presence of HVAR usually prevents these incorrect flags to actually interfere with glyph horizontal metrics and it's only when deliberately removing HVAR that it surfaces.

Copy link
Copy Markdown
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me, not sure if it's worth getting a +1 from someone who spends more time in this repo?

@anthrotype anthrotype requested a review from madig August 27, 2025 15:06
Copy link
Copy Markdown
Collaborator

@madig madig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anthrotype anthrotype merged commit 9763de4 into main Aug 27, 2025
10 checks passed
@anthrotype anthrotype deleted the no-auto-use-my-metrics-for-vfs branch August 27, 2025 15:40
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.

3 participants