SUMMARY Emojis are displayed correctly when viewing a markdown file with Okular, but if you export the file to PDF, emojis will be lost. STEPS TO REPRODUCE 1. Open a markdown file with some emojis in it. 2. Export it to PDF: File > Export As > PDF OBSERVED RESULT PDF has no emojis at all. Not even the "missing boxes". EXPECTED RESULT PDF should have emojis, just as the rendered markdown file. SOFTWARE/OS VERSIONS KDE Plasma Version: 6.2.3 KDE Frameworks Version: Qt Version: 6.8.0 ADDITIONAL INFORMATION
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.