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

example editor-libcosmic does not properly apply scale #33

Closed
WhyNotHugo opened this issue Nov 3, 2022 · 10 comments
Closed

example editor-libcosmic does not properly apply scale #33

WhyNotHugo opened this issue Nov 3, 2022 · 10 comments

Comments

@WhyNotHugo
Copy link
Contributor

Running the editor-libcosmic example, I get this:

image

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.

@mmstick
Copy link
Member

mmstick commented Nov 3, 2022

This looks like a graphics driver issue. What GPU do you have?

@WhyNotHugo
Copy link
Contributor Author

Oh, that was on Asahi Linux / M1. So software rendering. I'll try on another host.

@WhyNotHugo
Copy link
Contributor Author

I tried on Intel, text rendering is very blurry:

image

@WhyNotHugo
Copy link
Contributor Author

Screenshot from 2022-11-03 at 22_25_38 092491215

@WhyNotHugo
Copy link
Contributor Author

Dammit, github compreses too much: https://0x0.st/ogOl.09249121

@jackpot51
Copy link
Member

You should run cargo update to ensure you have the latest version of iced. We have a patched version that fixes the blurriness.

@WhyNotHugo
Copy link
Contributor Author

WhyNotHugo commented Dec 3, 2022

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:

image

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.

@WhyNotHugo WhyNotHugo changed the title example editor-libcosmic is broken? example editor-libcosmic does not properly apply scale Dec 13, 2022
@VitalyAnkh
Copy link

Is this problem fixed by d85f12a?

@jackpot51
Copy link
Member

Yes, it should be.

@WhyNotHugo
Copy link
Contributor Author

Yeah, now it's nice and sharp!

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

4 participants