Chinese characters cannot rendered in PDF even if dedicated font command
See original GitHub issueHello, I met with some problems when exporting my script written in Chinese into PDF. I wrote the script entirely in Chinese, and the preview shows all the Chinese characters, but they just turned to blank when I exported a PDF copy.
I’ve looked into some other issue page and tried the Font:
header command, and it works in the preview (all the characters in the preview mode are changed to the specified font), but the PDF only shows the non-Chinese characters in it, such as the numbers and alphabets.
I attached my original .fountain script file and the PDF copy of it below so you can have a check on it.
Really hope that this bug could be fixed real soon 🙏🙏🙏
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Solved: Chinese Characters Displaying Invalid Character Ad...
I have found the answer I needed. It seems that font I needed "Arial Unicode MS" was missing from the client that opened...
Read more >Part of the Chinese character cannot be rendered #12629
js version: 2.5.207; Is a browser extension: -. Steps to reproduce the problem: use the getDocument api to render the pdf; getDocument options:....
Read more >Problem with Chinese characters in pdf output under Win ...
Any other ideas as to what might be wrong? Thanks. Update: it turned out that a server reboot fixed this. The Arial Unicode...
Read more >Tutorials Archives - Page 8 of 11 - Michael Franzl
XeLaTex and Junicode font with chinese and greek characters ... It turned out that even fonts which are dedicated to Unicode do not...
Read more >One chinese character won´t appear in pdf - TeX
I have fandol in miktex and texlive, but the font doesn't have one of your characters: Missing character: There is no 內 in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I’ve tried directly including the font-finder fork into betterfountain, but a bunch of ttc fonts are mysteriously incompatible with pdfkit for some reason… Additionally, the few that do work have a bunch of other issues, resulting from the fact that the characters are about double the width of most western fonts.
Unfortunately, I think this will have to go on the backburner. That said, I promise the next big rewrite of betterfountain (whenever that happens…) will be a lot more friendly to international alphabets. I really don’t want it to be as western-centric as it currently is.
I’ve submitted a pull request on the font-finder repo which adds support for Chinese fonts (and other TTC ones, such as Cambria). As soon as it’s approved, i’il be able to publish a new version of betterfountain which will fix this issue!
If my PR isn’t merged by the end of the month, I’il just include my fork of font-finder straight into betterfountain.