retext icon indicating copy to clipboard operation
retext copied to clipboard

ReText does not display emojis and other graphical unicode characters

Open gabriel-libardi opened this issue 3 years ago • 2 comments
trafficstars

This is the sample of unicode characters that I used:

This is how ReText displays it on the editing tab:

This is how it displays it on preview mode:

gabriel-libardi avatar Mar 02 '22 12:03 gabriel-libardi

Hi! I think it's an issue not with ReText, but with the fonts you use and with the library versions.

For me, with Qt 5.15.2 and with default settings, it looks like this: Screenshot

Yes, most of them are black and white, and there is a problem with composite emoji, but it's better than what is on your screenshot.

So please try the following:

  • Making sure you have the latest Qt version (e.g. pip3 install --user --upgrade PyQt5 PyQtWebEngine).
  • Install more fonts (e.g. fonts-noto-color-emoji).
  • Use “Editor → Change editor font” and “Editor → Change preview font”, try selecting other fonts (e.g. from Liberation, DejaVu or Noto families) and see if it helps.
  • Try also “Edit → Use WebEngine (Chromium) renderer”, it has better emoji support than the default one.

mitya57 avatar Mar 12 '22 19:03 mitya57

I came here for the same problem and tried all suggestions but nothing worked... Then I realized that there's also File -> Set Encoding... and once I entered utf-8 , all fonts worked as expected! 🥳

(you can also add this permanently to the settings-file via: defaultCodec=utf-8)

raphaelquast avatar Oct 20 '23 20:10 raphaelquast