Closed WhyNotHugo closed 1 year ago
This looks like a graphics driver issue. What GPU do you have?
Oh, that was on Asahi Linux / M1. So software rendering. I'll try on another host.
I tried on Intel, text rendering is very blurry:
Dammit, github compreses too much: https://0x0.st/ogOl.09249121
You should run cargo update
to ensure you have the latest version of iced. We have a patched version that fixes the blurriness.
I think the issue is the example itself isn't handling the scale properly. Actually, not sure about this; I'm not sure if it's an issue in the example, in cosmic-text or in iced.
The issue becomes extremely obvious when setting scale=6:
I can repro this with:
cd ~/clones/github.com/pop-os/cosmic-text
cd examples/rich-text/
echo "output * scale 6\nxwayland off\nexec cargo run" > sway.conf
sway -c sway.conf
If you run your terminal (e.g.: foot
) instead of cargo run
, it renders perfectly crisp.
Is this problem fixed by https://github.com/pop-os/cosmic-text/commit/d85f12af8bbee5a3ef97dc9785f8193a0c3b5f4e?
Yes, it should be.
Yeah, now it's nice and sharp!
Running the
editor-libcosmic
example, I get this:There is no text rendered anywhere. Clicking on the big textfield and typing does nothing. Opening a file changes nothing. The pulldown menus and toggle buttons respond, but do nothing.