question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chinese characters cannot rendered in PDF even if dedicated font command

See original GitHub issue

Hello, 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.

The issued PDF.pdf

Really hope that this bug could be fixed real soon 🙏🙏🙏

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
piersdeseillignycommented, Jan 1, 2022

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.

1reaction
piersdeseillignycommented, Dec 17, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found