astefanutti / decktape

PDF exporter for HTML presentations
MIT License
2.16k stars 175 forks source link

Emojis are missing from bold text and headings in PDF #296

Open Graumagier opened 11 months ago

Graumagier commented 11 months ago

When converting some reveal.js slides to PDF decktape is not including some emoji in headings as well as in bold text. I go from Markdown to Quarto (reveal.js) to decktape with decktape -s 1422x1067.

I've attached some minimal examples (HTML generated by Quarto and final PDF out of decktape).

I've also found When exporting to screenshots, emojis are missing in titles #209 which might be related, although there the issue only seems to occur in (image) screenshots.

Thanks!

emojis_minimal.pdf emojis_minimal_html.zip

MarkusTiede commented 11 months ago

Would be great if this could be fixed; also happening here - if you need additional information, just reply.

Avoiding bold emojis e.g. is an easy workaround.

Might also be an alternative: https://www.bannerbear.com/blog/how-to-get-puppeteer-to-display-emojis/