Skip to content

fonts: add a system setting that skips Google Fonts - #4

Merged
Aryanutkarsh merged 1 commit into
Aryanutkarsh:mainfrom
michaelblaess:fonts-system
Oct 17, 2026
Merged

Aryanutkarsh merged 1 commit into
Aryanutkarsh:mainfrom
michaelblaess:fonts-system

Conversation

@michaelblaess

Copy link
Copy Markdown
Contributor

Closes #3

Why

I use SeeCode for architecture diagrams that end up in customer documentation. Some of those environments do not allow pages that call third-party hosts, and under GDPR a page that loads Google Fonts sends the viewer's IP address to Google. PRIVACY.md is upfront about this, but there is currently no way to turn it off.

What

A new fonts setting, also available as a spec field:

  • google (default): nothing changes.
  • system: the page and the folder index leave out the Google Fonts stylesheet and the preconnects. The font stacks stay, so the system fallbacks apply. SVG export then makes no font request.
node skills/seecode/scripts/seecode.mjs config set fonts system

Not in this PR

  • Fonts from a brand profile are untouched. They are an explicit choice by the user.
  • The in-page Export menu still loads its encoders from jsDelivr on click. Happy to follow up in a separate PR if you want that covered as well.

Checks

  • npm test: 231 passed, 1 skipped (Windows 11, Node 24)
  • node tools/check-version-unchanged.mjs origin/main: ok
  • New test/fonts.test.mjs: default unchanged, no external src/href with system (spec and setting, sketchy style, folder index), SVG export without a fetch, config rejects unknown values.
  • settings.md, spec.md, PRIVACY.md and the README line on fonts are updated.

No screenshots regenerated, the default look is unchanged.

A new `fonts` setting (and spec field) takes `google` (default, unchanged)
or `system`. With `system` the page and the folder index leave the Google
Fonts stylesheet and preconnects out, so a generated diagram references no
other host, and SVG export makes no font request.
@Aryanutkarsh
Aryanutkarsh merged commit e31e6ae into Aryanutkarsh:main Oct 17, 2026
@michaelblaess

Copy link
Copy Markdown
Contributor Author

Thanks a lot for merging this so quickly, and for SeeCode in general! I use it alongside Archify in my own diagram skill, and the system font switch means I can hand the HTML files to customers who must not load anything from third-party servers. If something else comes up, I'll open an issue first, as CONTRIBUTING.md asks.

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.

Setting to render diagrams without Google Fonts

2 participants