From 4737de5eede61df9bdada7053a03946eec4d9ac6 Mon Sep 17 00:00:00 2001 From: Joe Blau Date: Wed, 7 Oct 2026 14:08:24 +0800 Subject: [PATCH] chore(docs): pin @bloxwap/font 0.1.2 (no italic preload) 0.1.1's next/font exports preloaded the italic faces, so every cold docs load downloaded ~600 KB of italic woff2 nothing rendered. 0.1.2 preloads only the normal faces; italics stay in the family and load on demand. The font binaries are byte-identical, so the derived OG faces are unchanged. This matches the monorepo pin (bloxwap/monorepo#4386) for the Bloxwap font migration, bloxwap/monorepo#4367. Co-Authored-By: Claude Opus 5.5 --- apps/docs/README.md | 4 ++-- apps/docs/package.json | 2 +- apps/docs/public/fonts/README.md | 4 ++-- bun.lock | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/docs/README.md b/apps/docs/README.md index ad4e94f9..c67e8f5f 100644 --- a/apps/docs/README.md +++ b/apps/docs/README.md @@ -13,7 +13,7 @@ The design follows the Bloxwap monorepo's documentation site at commit `15201923 - `app/brand-tokens.css` is a verbatim snapshot of `packages/ui/src/styles/tokens.generated.css`. - Fumadocs colors, typography, navigation, and forced dark mode follow `workers/docs/src/app/global.css` and its layouts. - The app icon and favicon in `public/logos/` preserve the original Bloxwap artwork and metadata. -- Bloxwap Sans body text and Bloxwap Mono code use the self-hosted Next.js exports from `@bloxwap/font@0.1.1`. +- Bloxwap Sans body text and Bloxwap Mono code use the self-hosted Next.js exports from `@bloxwap/font@0.1.2`. - Space Grotesk Bold headings retain the local asset and OFL notice in `public/fonts/`. - Static Open Graph font instances and their license/provenance are documented in `public/fonts/README.md`. @@ -95,7 +95,7 @@ always point to the published GitHub Pages site, including when previewing local - `app/og/[...slug]/route.tsx` generates `/og/home.png`, `/og/docs.png`, and `/og/docs/.png` during the static build. Cards use Bloxwap Sans Black for titles and Bloxwap Sans Bold for the owner, description, and stats. The static Bloxwap Sans -faces are instantiated from the published `@bloxwap/font@0.1.1` variable WOFF2; +faces are instantiated from the published `@bloxwap/font@0.1.2` variable WOFF2; their license is included as `public/fonts/Bloxwap-OFL.txt`. The renderer uses bundled fonts and brand geometry locally; it needs no font CDN, API credentials, or image server after deployment. Generated PNGs live in `out/` and are included in the GitHub Pages artifact. diff --git a/apps/docs/package.json b/apps/docs/package.json index 6df80221..98ec16ea 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -11,7 +11,7 @@ "check:content": "bun run scripts/check-content.ts && markdownlint-cli2 --config ../../.markdownlint-cli2.jsonc ../../README.md ../../packages/hyperliquid/README.md README.md \"content/**/*.md\"" }, "dependencies": { - "@bloxwap/font": "0.1.1", + "@bloxwap/font": "0.1.2", "@bloxwap/hyperliquid": "workspace:*", "animejs": "4.4.0", "fumadocs-core": "16.15.14", diff --git a/apps/docs/public/fonts/README.md b/apps/docs/public/fonts/README.md index 3ecb882f..73bbd33a 100644 --- a/apps/docs/public/fonts/README.md +++ b/apps/docs/public/fonts/README.md @@ -1,12 +1,12 @@ # Documentation fonts Web body text uses Bloxwap Sans and code uses Bloxwap Mono from the exact -`@bloxwap/font@0.1.1` dependency. The Next.js exports self-host variable weights +`@bloxwap/font@0.1.2` dependency. The Next.js exports self-host variable weights 100–900, italics, and script companions without requests to Google Fonts. Space Grotesk Bold remains the heading face, with its adjacent OFL notice. `BloxwapSans-Bold.ttf` (700) and `BloxwapSans-Black.ttf` (900) are static instances of `fonts/BloxwapSans/BloxwapSans-Variable.woff2` from the published -`@bloxwap/font@0.1.1` npm tarball. FontTools 4.66.1 `instantiateVariableFont` +`@bloxwap/font@0.1.2` npm tarball (byte-identical to 0.1.1, so the derived files are unchanged). FontTools 4.66.1 `instantiateVariableFont` sets `wght` to 700/900 and removes WOFF2 compression (`font.flavor = None`) for the Open Graph renderer. Keep `Bloxwap-OFL.txt` with these derived faces. diff --git a/bun.lock b/bun.lock index ccc74b56..5218142d 100644 --- a/bun.lock +++ b/bun.lock @@ -11,7 +11,7 @@ "apps/docs": { "name": "@bloxwap/hyperliquid-docs", "dependencies": { - "@bloxwap/font": "0.1.1", + "@bloxwap/font": "0.1.2", "@bloxwap/hyperliquid": "workspace:*", "animejs": "4.4.0", "fumadocs-core": "16.15.14", @@ -91,7 +91,7 @@ "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.5.5", "", { "os": "win32", "cpu": "x64" }, "sha512-bIBFo+n6MIxdNcVFy5CrurbKiZQiUciK3bt8+O9I4wjFZNTfXLpi+giq47522eXqW5NBc9ulx7dR1SlZKi2J5g=="], - "@bloxwap/font": ["@bloxwap/font@0.1.1", "", { "peerDependencies": { "next": ">=13.2.0" }, "optionalPeers": ["next"] }, "sha512-T3ma3itwbdi9aDgtCOY1ktDr3XW7V/oBwf/ihop5UfXcL8/nmI9teqO3bPe5hb7zQZv2MV1wrZM2waCEGDvbaw=="], + "@bloxwap/font": ["@bloxwap/font@0.1.2", "", { "peerDependencies": { "next": ">=15.0.0" }, "optionalPeers": ["next"] }, "sha512-3aWepyHUKhbRtpIZxYYN4ixY703YsKXcfgsRQR1BjiH8hkvahm/xfCkzFhb8fKoN6g1y6vTSb9FA5HCxJ9O0uQ=="], "@bloxwap/hyperliquid": ["@bloxwap/hyperliquid@workspace:packages/hyperliquid"],