Skip to content

Bundle Directory fonts for local loading - #270

Open
cX3po wants to merge 2 commits into
DACS-Agent-commerce:phase0-completionfrom
cX3po:cx3po/issue-144
Open

cX3po wants to merge 2 commits into
DACS-Agent-commerce:phase0-completionfrom
cX3po:cx3po/issue-144

Conversation

@cX3po

@cX3po cX3po commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Bundle Directory fonts for local loading

Replace the root layout's Google Fonts loader with next/font/local, using bundled Plus Jakarta Sans and Source Code Pro variable fonts. This removes the layout's build-time dependency on fetching those fonts from Google.

The files are under reference-implementations/dacs-directory/:

  • app/layout.tsx loads app/fonts/PlusJakartaSans-variable.ttf and app/fonts/SourceCodePro-variable.ttf, using --font-jakarta with weight 400 700 and --font-scp with weight 400 600.
  • app/fonts/ contains both font files, their SIL OFL 1.1 license files, and a README with the two font hashes.
  • test/offline-fonts.test.mjs checks that the layout has no next/font/google import, checks the requested weight ranges against the bundled font axes, and checks the adjacent license files.

How to check: cd reference-implementations/dacs-directory && node --test test/offline-fonts.test.mjs

Closes #144


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

This branch has not been deployed

No deployments
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