From 8b22fd021f6ab4d6ba5b79ecfbf107e1dbfe7a1a Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Sat, 8 Aug 2026 18:23:50 +0300 Subject: [PATCH] Fix Chinese serif font rendering in PDF export The web preview correctly applied the serif display font to Chinese headings, but the PDF export fell back to a non-serif typeface. Updated global CSS to ensure consistent serif typography for Chinese text across both preview and exported documents. Fixes #62 --- src/app/globals.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/globals.css b/src/app/globals.css index fa0198f..8a8a2e8 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -159,6 +159,11 @@ textarea { text-size-adjust: 100%; } +/* Ensure CJK characters in headings fall back to serif in PDF/export */ +.cv-document :is(h1, h2, h3, h4, h5, h6) { + font-family: inherit, "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif; +} + .cv-content-root { --cv-scale: 1; font-size: calc(16px * var(--cv-scale));