From 8c968e92f4dcc22e1da6b62fd86b92892f15a234 Mon Sep 17 00:00:00 2001 From: russ <5236354+russellbrenner@users.noreply.github.com> Date: Thu, 9 Apr 2026 23:12:30 +1000 Subject: [PATCH] fix: correct Computer Modern Sans italic font file mappings (#2881) The 400italic and 700italic variants for Computer Modern Sans pointed to incorrect filenames. `cmunsl.woff` does not exist in the upstream bitmaks/cm-web-fonts repository (returns 404 from jsDelivr CDN). This causes PDF export to fail with "Waiting failed: 5000ms exceeded" because Puppeteer's waitForFonts stalls on the 404, preventing the page from signalling data-wf-loaded="true" within the timeout. Correct mapping verified against the upstream @font-face declarations in bitmaks/cm-web-fonts font/Sans/cmun-sans.css: - 400 normal: cmunss.woff (unchanged) - 400 italic: cmunsi.woff (was cmunsl.woff, which does not exist) - 700 normal: cmunsx.woff (unchanged) - 700 italic: cmunso.woff (was cmunsi.woff, which is the 400 italic) Co-authored-by: Claude --- scripts/fonts/generate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/fonts/generate.ts b/scripts/fonts/generate.ts index a10664c10..72fe7112e 100644 --- a/scripts/fonts/generate.ts +++ b/scripts/fonts/generate.ts @@ -99,9 +99,9 @@ function getComputerModernWebFonts(): WebFont[] { preview: `${CDN}/Sans/cmunss.woff`, files: { "400": `${CDN}/Sans/cmunss.woff`, - "400italic": `${CDN}/Sans/cmunsl.woff`, + "400italic": `${CDN}/Sans/cmunsi.woff`, "700": `${CDN}/Sans/cmunsx.woff`, - "700italic": `${CDN}/Sans/cmunsi.woff`, + "700italic": `${CDN}/Sans/cmunso.woff`, }, }, {