mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-26 09:54:43 +10:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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`,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user