Fix PDF Chinese character encoding with dynamic font loading#3
Fix PDF Chinese character encoding with dynamic font loading#3
Conversation
CLA Signature Guide@Copilot , thanks for your pull request. The following commit(s) are not associated with a signed Contributor License Agreement (CLA).
To sign CLA, click here. To check if your email is configured correctly, refer to the FAQs. Once you've signed the CLA or updating your email, please comment |
Linking Issue Notice@Copilot , the pull request must be linked to at least one issue. |
- Load NotoSansSC font from CDN dynamically - Update all PDF text rendering to use Chinese-compatible font - Fallback to helvetica if font loading fails Co-authored-by: zeshengzong <54812088+zeshengzong@users.noreply.github.com>
CLA Signature Guide@Copilot , thanks for your pull request. The following commit(s) are not associated with a signed Contributor License Agreement (CLA).
To sign CLA, click here. To check if your email is configured correctly, refer to the FAQs. Once you've signed the CLA or updating your email, please comment |
- Add multiple CDN sources for reliability - Implement timeout mechanism for font loading - Create local font directory with README - Add placeholder for local font hosting option Co-authored-by: zeshengzong <54812088+zeshengzong@users.noreply.github.com>
CLA Signature Guide@Copilot , thanks for your pull request. The following commit(s) are not associated with a signed Contributor License Agreement (CLA).
To sign CLA, click here. To check if your email is configured correctly, refer to the FAQs. Once you've signed the CLA or updating your email, please comment |
Co-authored-by: zeshengzong <54812088+zeshengzong@users.noreply.github.com>
CLA Signature Guide@Copilot , thanks for your pull request. The following commit(s) are not associated with a signed Contributor License Agreement (CLA).
To sign CLA, click here. To check if your email is configured correctly, refer to the FAQs. Once you've signed the CLA or updating your email, please comment |
- Add comment explaining bold font uses same file as regular - Remove outdated RawGit URL (shut down in 2019) - Fix spacing in file size notation (3-8 MB) Co-authored-by: zeshengzong <54812088+zeshengzong@users.noreply.github.com>
CLA Signature Guide@Copilot , thanks for your pull request. The following commit(s) are not associated with a signed Contributor License Agreement (CLA).
To sign CLA, click here. To check if your email is configured correctly, refer to the FAQs. Once you've signed the CLA or updating your email, please comment |
PDF exports render Chinese characters as garbled text. jsPDF's default helvetica font lacks CJK glyphs.
Changes
Font Loading System (
js/app.js)loadChineseFont()with multi-source fallback: jsDelivr CDN → unpkg CDN → local file → helveticahelveticatoNotoSansSCon successful loadLocal Hosting Support (
fonts/)Documentation (
PDF_FIX_DOCUMENTATION.md)Before
Notes
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.jsdelivr.net/usr/bin/wget wget REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.