Skip to content

fontc operations: warn on unknown flags/filters (instead of exceptions) - #1219

Merged
simoncozens merged 3 commits into
googlefonts:mainfrom
daltonmaag:fontc-unknown-flags-warn
Aug 28, 2026
Merged

fontc operations: warn on unknown flags/filters (instead of exceptions)#1219
simoncozens merged 3 commits into
googlefonts:mainfrom
daltonmaag:fontc-unknown-flags-warn

Conversation

@RickyDaMa

Copy link
Copy Markdown
Contributor

Unknown flags are now passed to fontc verbatim, which will still error if it was a fontmake flag, but otherwise provides a way to give fontc-specific args to fontc when it's being used. Unknown filters are now dropped.

Longer term maybe we should just expect users to use the fontc operations directly (with some extra ease of use in the default recipe provider)? Because bridging this gap is awkward and footgun-prone.

I was also in the locale of an outstanding question I happened to know the answer to, so I wrote that in :)

@RickyDaMa
RickyDaMa force-pushed the fontc-unknown-flags-warn branch from 13b5af5 to 719fa9b Compare August 28, 2026 13:41
@simoncozens

Copy link
Copy Markdown
Contributor

Longer term maybe we should just expect users to use the fontc operations directly

Longer term we use gftools-builder3 which has fontc as a first-class citizen and not a somewhat hacky argument-wrapper for fontmake. But sure, we shall do this for the medium term. :-)

@simoncozens
simoncozens merged commit f8b5753 into googlefonts:main Aug 28, 2026
14 checks passed
@RickyDaMa
RickyDaMa deleted the fontc-unknown-flags-warn branch August 28, 2026 14:43
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