Skip to content

fix(producer): warn before huge CJK font subset downloads#2379

Closed
miguel-heygen wants to merge 1 commit into
mainfrom
fix/cjk-font-subset-guidance-1783990836
Closed

fix(producer): warn before huge CJK font subset downloads#2379
miguel-heygen wants to merge 1 commit into
mainfrom
fix/cjk-font-subset-guidance-1783990836

Conversation

@miguel-heygen

@miguel-heygen miguel-heygen commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • detect Google Fonts responses that expand to more than 100 subset faces before downloading them
  • warn that compile iterations may take minutes and link to self-hosting/subsetting guidance
  • preserve the existing deterministic font output and cache semantics

Reproduction

The current Google Fonts request produces 1,116 @font-face entries for Noto Sans JP and 45 for IBM Plex Mono, matching the 1,161-face feedback report.

Test plan

  • bun test packages/producer/src/services/deterministicFonts-failClosed.test.ts (16 pass)

).join("\n");
const fetchImpl = (async (input: string | URL | Request) => {
const url = String(input);
return url.includes("fonts.googleapis.com")
@miguel-heygen

Copy link
Copy Markdown
Collaborator Author

Closing in the owner-scoped backlog value sweep. This is a narrow lint/audit/docs/example/skills refinement, is currently conflicting, or adds more maintenance surface than its demonstrated user impact justifies. Reopen only if a current reproducible case makes it a priority again.

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.

2 participants