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

Text is blurry #106

Closed
ales-tsurko opened this issue Mar 8, 2023 · 13 comments
Closed

Text is blurry #106

ales-tsurko opened this issue Mar 8, 2023 · 13 comments

Comments

@ales-tsurko
Copy link

I'm on macOS 13.2.1, with M1. When I run the editor-libcosmic example, the text looks blurry compared to native text. Some time ago I head this issue with nuklear. It was related to antialiasing. (Notice also on the screenshot some symbols aren't rendered, but I'm not sure whether it's related to cosmic-text.)
Screenshot 2023-03-08 at 17 39 40

@jackpot51
Copy link
Member

I believe this is an issue with the image renderer in iced, try the editor-orbclient example.

@ales-tsurko
Copy link
Author

It's blurry too:

Screenshot 2023-03-14 at 15 41 14

@jackpot51
Copy link
Member

I'm going to try making a softbuffer example. I believe this is HiDPI scaling on macOS causing the issue and orbclient is not handling that correctly.

@VitalyAnkh
Copy link

VitalyAnkh commented Mar 23, 2023

This also happens on Linux with Gnome on Wayland, with a 2560x1600 display.

Like the image below show, the editor-libcosmic (right side) window's fonts are much blurry than those in firefox (left side).

image

@jackpot51
Copy link
Member

@VitalyAnkh please see if the orbclient example has the same problem on Linux. I believe there are two different issues here:

  • editor-libcosmic rendering in an image that is 1x scale on HiDPI systems
  • editor-orbclient not telling macOS it is HiDPI capable

@jackpot51
Copy link
Member

Fixed in the latest commit, for editor-libcosmic. Not fixed for editor-orbclient on macOS, but I recommend the libcosmic example since it uses native macOS rendering.

@VitalyAnkh
Copy link

@jackpot51 Confirmed it's also fixed for editor-libcosmic on Linux with gnome wayland with HiDPI display.

image

And editor-orbclient is still blurry as you said.

image

@ales-tsurko
Copy link
Author

Can confirm it's fixed on macOS.

@HolgerGottChristensen
Copy link

HolgerGottChristensen commented Jul 3, 2023

I seem to still have a problem with some of the text being blurry when running the editor-libcosmic example. I am running on an M1 MacOS 12.4.

The interesting thing is that it seems to only be the text in the editor that is blurry and the rest of the UI is crisp.

Screenshot 2023-07-03 at 21 13 56

@VitalyAnkh
Copy link

I experienced the same issue as @HolgerGottChristensen
image

@VitalyAnkh
Copy link

After bisecting I found the blur issue of editor-libcosmic originates from f6f56a9. This commit just updated the revision of libcosmic, so the real problem in libcosmic is to be investigated 🚀

@ltrook21
Copy link

@VitalyAnkh Do you know if this issue was addressed? I have blurry text in all Chrome based browsers.

@mmstick
Copy link
Member

mmstick commented Jul 30, 2024

@ltrook21 Chrome doesn't use cosmic-text

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

6 participants