| Summary: | Exporting markdown to PDF loses emojis | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | Iizuki <kv3f5ves> |
| Component: | PDF backend | Assignee: | Okular developers <okular-devel> |
| Status: | CONFIRMED --- | ||
| Severity: | minor | CC: | aacid, kv3f5ves, viktor.tempelfeld |
| Priority: | NOR | ||
| Version First Reported In: | 24.08.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
An exmaple markdown file with an emoji
.md file with emoticons |
||
|
Description
Iizuki
2024-11-25 09:09:32 UTC
Please attach such a markdown file. Created attachment 176258 [details]
An exmaple markdown file with an emoji
Works for me. Which doesn't make much sense since i'm also using archlinux packages for this test. That is weird yeah, but it gave me a debugging idea.
I have the following configuration in `/home/iizuki/.config/fontconfig/fonts.conf`:
```xml
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Mono</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
</fontconfig>
```
The point is just to use color emojis where-ever possible.
Disabling that conf makes the export work, only with a black and white teapot emoji before and after. The files exported with the conf enabled still don't show anything. There's just no (selectable) character in the PDF.
Created attachment 184540 [details]
.md file with emoticons
I have the same problem in EndeavourOS. Emoticons are lost when converting from .md to .pdf. I am attaching an .md file with emoticons. Check it out for yourself.
The uploaded file does not look the same as I uploaded it. It had the following content: 📞 1 ✉️ 2 💬 3 🏠 4 🌍 5 ❤️ 6 🙂 7 Interesting i can reproduce the issue now, i wonder if i did not test it properly the first time. |