vscode-markdown-pdf icon indicating copy to clipboard operation
vscode-markdown-pdf copied to clipboard

Blank spaces where emojis were used.

Open CosmicYogi opened this issue 7 years ago • 5 comments

Hi, The overall extension works as it should be but notices a small bug when was converting a doc from md. to .pdf. The issue was that I got blank spaces where ever I used emojis in my markdown file. Added images for better understanding.


screen shot 2018-02-15 at 5 31 04 pm 👆🏼 content of `markdown` file
screen shot 2018-02-15 at 5 30 44 pm 👆🏼 content of `pdf' file.

CosmicYogi avatar Feb 15 '18 12:02 CosmicYogi

What OS are you on? Do you use any custom CSS? For me emojis are there in the pdf but not with the OS default graphics.

image

image

vimtaai avatar Feb 15 '18 12:02 vimtaai

Using macOS High Sierra. Nope, I don't use any custom CSS.

CosmicYogi avatar Feb 15 '18 14:02 CosmicYogi

Could be an OS related issue, I'm on Windows 10.

vimtaai avatar Feb 18 '18 11:02 vimtaai

Hey, I did not have an issue with emoji, but at one point this issue appeared for me. I notice that it is not really a black space though, but rather that Emojis are white, therefore invisible on white background standard PDF. I assume this may be a font issue or something related?

Edit : made a few tests, Fonts that may be used for emojis are DejaVu (True type CID, encoding identity-H) or No name (Type 3, encoding custom)

Ced-C avatar Mar 19 '24 07:03 Ced-C

I tried to export to html and then, manually to pdf, it seems the issue appears with chromium (which is used under the hood I suppose) and firefox. The tricky part is that the pdf preview upon Ctrl+P is good with emoji in colour, but not the actual file.

Ced-C avatar Mar 19 '24 08:03 Ced-C