Markdown Monster
Smiley / PDF
Gravatar is a globally recognized avatar based on your email address. Smiley / PDF
  Vincent H.
  All
  May 14, 2020 @ 02:13am

Hi Rick,

Smilies are not displayed when converting to PDF.
Is there a solution ?

Gravatar is a globally recognized avatar based on your email address. re: Smiley / PDF
  Rick Strahl
  Vincent H.
  May 14, 2020 @ 06:30pm

Yes this is a known issue.

You need to pick a theme that has an Emoji enabled font as it's primary font in order for this to work.

You can modify the active theme when you print to do this (Preview -> Edit Theme --> Theme.css):

font-family: "Apple Color Emoji", "Segoe UI Emoji",  -apple-system, BlinkMacSystemFont,"Segoe UI", Helvetica, Helvetica, Arial, sans-serif, "Segoe UI Emoji", "Apple Color Emoji";

Save and then re-create the PDF. At this point you should see the Emoji.

Unfortunately those Emoji fonts are relatively low quality for the main font selections. I had these set as the defaults for a while but a lot of people (including myself) were complaining about the terrible quality of those preview fonts - they are very rough and lack the smoothness of the 'normal' fonts like Segoe UI even though Segoe UI Emoji is in the same family.

So - what you can do is this:

Copy the theme you want to use for printing and rename it like: Dharkan - Print and change Theme.css to include the Emoji font. Then before you print you can switch to that theme and print.

I don't have a good solution other than to create a print dedicated theme, but that too will suffer from the less than optimal font quality.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Smiley / PDF
  Vincent H.
  Rick Strahl
  May 14, 2020 @ 11:16pm

Thank you for your answer.
Finally, I opted for this time, it is the export in HTML which does not show me the icons (I save to "self contained ...").

Gravatar is a globally recognized avatar based on your email address. re: Smiley / PDF
  Rick Strahl
  Vincent H.
  May 15, 2020 @ 01:45pm

Works for me...

And I don't see how it wouldn't - after all it's the same HTML.

But it may matter where you view the HTML. Self-contained is still HTML so it still uses the same fonts and the fonts are not embedded but used based on font styles assigned. If the fonts on some other machine aren't present you won't get those icons/characters.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Smiley / PDF
  Vincent H.
  Vincent H.
  May 15, 2020 @ 11:05pm

In the preview window it is impeccable, but in the exported file the image (or another one) does not appear.
On the same PC.

<p><i class="fa fa-hand-o-right"></i>  Et <strong>c'est tout</strong> !</p>
  1. Export in pdf is ok (for icons)
Gravatar is a globally recognized avatar based on your email address. re: Smiley / PDF
  Rick Strahl
  Vincent H.
  May 16, 2020 @ 12:58pm

Looks like FontAwesome fonts aren't embedded into the packaged HTML.

As a workaround you can change the template and point it at the Web version of FontAwesome.

+++ Rick ---

© 1996-2020