Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Graumagier opened this issue Sep 12, 2023 · 3 comments
Open

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

Graumagier opened this issue Sep 12, 2023 · 3 comments
Labels

Comments

@Graumagier
Copy link

Graumagier commented Sep 12, 2023

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.

  • HTML in Chrome:
HTML in Chrome
  • Final PDF output:
Final PDF output

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
Copy link

MarkusTiede commented Sep 28, 2023

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/

Repository owner deleted a comment from Miladi11 Oct 20, 2023
Repository owner deleted a comment from Miladi11 Nov 4, 2023
Repository owner deleted a comment from JananAli Nov 4, 2023
Repository owner deleted a comment from Miladi11 Nov 9, 2023
@bungeman
Copy link

This is tracked at Character disappears when printing an SVG and should be fixed with [pdf] Reduce drawing glyphs as paths which is in Chrome 130.0.6697.0 and later. After Puppeteer gains support for Chrome 130 and then rolled into decktape (something like 05eb620) then this should be fixed.

@astefanutti
Copy link
Owner

@bungeman thanks, that's very useful. I'll make sure we upgrade to Chrome 130 once it's supported by Puppeteer.

Repository owner deleted a comment from AmirSana Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants