Open klizet opened 3 months ago
Typora uses Chromium's built-in PDF generation method, so, if you export the md to html, open it in Chrome and print as PDF, does the same bug occur?
Sure, you are correct. This bug is reproduced by the edge browser. At the same time, the built-in 'Save as pdf' function of firefox, and the virtual pdf printer of windows 'Print as PDF' works well without any issue.
After checking the chromium issue tracker, I found it's related to the bug 41469265 but marked as fixed. I will re-issue this to the chromium maintainers some days later.
[x] Searched existing issues to avoid creating duplicates.
[ ] Confirmed that it can be reproduced in built-in themes without customized css.
[x] Searched http://support.typora.io/
Describe the bug Some Chinese characters eg. '一'、'二' incorrectly encoded when copied from generated PDF using 'Adobe Source Han' serif/sans font.
To Reproduce Steps to reproduce the behavior:
Expected behavior Characters copied from the pdf should be exactly consistent with the original input.
Screenshots / Screencasts Omitted.
Sample Markdown File Omitted.
Desktop (please complete the following information):
Typora Version 1.8.10 in release channel.
Additional context
The issue is also discussed here but related to itext library or html2pdf program. https://www.v2ex.com/t/965813 (in Chinese) https://juejin.cn/post/6844903729439703053 (in Chinese)
This bug may be related to the upstream libraries of typora program. But, until this bug gets officially fixed, there are many ways to do a quick fix, for people who bothered.