Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReText does not display emojis and other graphical unicode characters #578

Open
gabriel-libardi opened this issue Mar 2, 2022 · 2 comments

Comments

@gabriel-libardi
Copy link

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:

@mitya57
Copy link
Member

mitya57 commented Mar 12, 2022

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.

@raphaelquast
Copy link

raphaelquast commented Oct 20, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants