Skip to content

docs(README): caveat that the icon_names subset can render axes differently than the full font - #2006

Open
AKnassa wants to merge 1 commit into
google:masterfrom
AKnassa:docs/icon-names-subset-caveat
Open

docs(README): caveat that the icon_names subset can render axes differently than the full font#2006
AKnassa wants to merge 1 commit into
google:masterfrom
AKnassa:docs/icon-names-subset-caveat

Conversation

@AKnassa

@AKnassa AKnassa commented Jul 11, 2026

Copy link
Copy Markdown

This adds a short caveat to the Material Symbols section of the README.

What's the problem? When you use Google Fonts' icon_names feature to load only the icons you need, the trimmed-down font it sends back can draw icons at a different stroke, fill, or weight than the full font — even when your CSS asks for the same settings. It mainly shows up with large icon lists, and because Google generates that trimmed font on their servers, an app can suddenly start rendering wrong without anyone touching the app's own code (build steps that inline Google Fonts CSS can even freeze the broken version into a release).

What does this change? Nothing in the icons or the scripts — this is documentation only. The new note explains the behavior, points out that only the trimmed (subset) font is affected while the full font renders fine, and gives two things a developer can do today: stop passing the icon_names parameter, or self-host the full variable font that already ships in this repo.

Why here? This is the repository developers land on when they hit this, and the reporter specifically asked for a documented note as an acceptable resolution. The wording is careful to say this is a Google Fonts serving behavior, not something a pull request to this repo can fix, so it stays consistent with the project's "no pull requests for icon files" policy.

Reported in #1997. Related open reports: #1834 and #1818.

@google-cla

google-cla Bot commented Jul 11, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Adds a short caveat to the Material Symbols section of the README
documenting that Google Fonts' server-side `icon_names` subset can
render glyphs at a different stroke/fill/weight state than the full,
un-subset font, regardless of the requested `font-variation-settings`.

Only the subset (fonts.gstatic.com/l/font?kit=...) is affected; the
full font (fonts.gstatic.com/s/...) renders correctly. Documents two
working workarounds (drop icon_names, or self-host the shipped
variablefont/ woff2) and notes this is a Google Fonts serving
behavior that a PR to this repo cannot itself change.

Docs-only; no icon or script files touched.

Reported in google#1997. Related open reports: google#1834, google#1818.

Claude-Session: https://claude.ai/code/session_01VY8qBKMt6C2B7iPBopiwni
@AKnassa
AKnassa force-pushed the docs/icon-names-subset-caveat branch from c909031 to c5e9422 Compare July 11, 2026 00:25
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