rstudio / pagedown

Paginate the HTML Output of R Markdown with CSS for Print
https://pagedown.rbind.io
Other
892 stars 128 forks source link

Rendering Unicode Symbols to PDF #326

Closed datawookie closed 4 months ago

datawookie commented 4 months ago

Hi!

Firstly, thanks for maintaining {pagedown}. I use this package daily and it's super.

I do have a persistent problem though. I often use Unicode symbols (like ⏰ or ☕) to liven up my documents. These show up perfectly in the HTML document. However, when I print to PDF using pagedown::chrome_print() the symbols either don't show up. If I select the portion of the PDF where I expect to see the symbol then I can actually see it's outline in the selection, but the symbol itself doesn't show up.

What I see in HTML:

Screenshot from 2024-07-05 09-57-49

What I see in PDF (selected to show that the outline is there):

Screenshot from 2024-07-05 09-56-51

Actually, there are some symbols that show up at least partially without having to select anything:

Screenshot from 2024-07-05 09-59-24

Thank you, Andrew.

datawookie commented 4 months ago

Fixed this by installing Noto fonts.