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

Emoji only show 'blank tofu' symbol when exported as PDF #654

Open
Snuggle opened this issue Nov 15, 2021 · 1 comment
Open

Emoji only show 'blank tofu' symbol when exported as PDF #654

Snuggle opened this issue Nov 15, 2021 · 1 comment

Comments

@Snuggle
Copy link

Snuggle commented Nov 15, 2021

👋 Hello!

When I export my CV as a PDF, all of the emoji seem to turn into broken 'tofu' symbols. This is not an issue with the HTML format.
Would it be possible to include some kind of emoji font to exported PDFs to fix this issue?

Here is the command I am using:
resume export public/index.html --format html --theme rocketspacer; resume export public/index.pdf --format pdf --theme rocketspacer

Example Screenshot from Exported PDF (Broken)

image
image
(It is worth noting that the font-awesome style icons are fine, this issue only affects native emoji)

Example Screenshot from Exported HTML (Working)

image
image

@Snuggle
Copy link
Author

Snuggle commented Nov 15, 2021

I have tried adding <script src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js" crossorigin="anonymous"></script> to a theme's stylesheet but it made no difference. From some reading, it seems like PDFs don't support SVGs in fonts, which breaks multi-colour emoji.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant