Skip to content

Correct the stale next/font hashed-family-name comments - #1141

Merged
blove merged 1 commit into
mainfrom
blove/next-font-family-comments
Sep 23, 2026
Merged

blove merged 1 commit into
mainfrom
blove/next-font-family-comments

Conversation

@blove

@blove blove commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Comment-only. Two comments said next/font registers font families under a hashed name:

  • the Inter note in apps/website/src/app/layout.tsx
  • the FONTS note in apps/website/src/styles/ui.css

That was true of older next/font (names like __Inter_aaf875), but next/font 16 registers the real family name. The current build emits @font-face{font-family:Inter;…} and --font-diagram:"Inter","Inter Fallback". #1139's Archivo italic split depends on exactly this: both instances register Archivo and the browser merges them.

The conclusions still hold, so nothing changes behaviourally. theme.css's Inter, system-ui stack only names the family; the font file exists only because next/font loads it. Remove the loader and diagrams still fall back to system-ui. Only the stated reasoning was wrong, and it was the wrong reasoning to leave next to code that now relies on the opposite fact.

Verification

  • nx test website, nx lint website
  • nx e2e website --grep "homepage architecture|homepage bundle" — 7 passed (architecture measures diagram text against Inter's metrics; bundle includes the italic-merge guard)

🤖 Generated with Claude Code

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
threadplane Ready Ready Preview Sep 23, 2026 7:44pm UTC

Request Review

@blove
blove enabled auto-merge (squash) September 23, 2026 19:23

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

The Inter comment in layout.tsx and the FONTS note in ui.css both said
next/font registers families under a hashed name. That was true of older
next/font; next/font 16 registers the real name — the built CSS emits
`@font-face{font-family:Inter}` and `--font-diagram:"Inter","Inter Fallback"`.
#1139's italic split depends on exactly that.

The conclusions still hold, so behaviour is unchanged: theme.css's
`Inter, system-ui` stack only names the family, and the font file exists only
because next/font loads it. Remove the loader and diagrams still fall back to
system-ui. Only the stated mechanism was wrong.
@blove
blove force-pushed the blove/next-font-family-comments branch from b512765 to 8fa1969 Compare September 23, 2026 19:36
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@blove
blove merged commit 2a41a40 into main Sep 23, 2026
31 of 32 checks passed
@blove
blove deleted the blove/next-font-family-comments branch September 23, 2026 20:53

This branch was successfully deployed

1 active deployment
Preview – threadplane — 8fa19698 Deployed Sep 23, 2026 by vercel[bot]
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