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 on browser can be blurry, based on window size #15619

Open
gosub-com opened this issue May 5, 2024 · 2 comments
Open

Text on browser can be blurry, based on window size #15619

gosub-com opened this issue May 5, 2024 · 2 comments

Comments

@gosub-com
Copy link

gosub-com commented May 5, 2024

Describe the bug

Text rendered in a user control Render function via contex.DrawText(formattedText, new(x, y)); can be blurry depending on the width of the browser.

To Reproduce

When the browser can show blurry text:
image
If I increase the browser window size horizontally by one pixel (or 2?) it clears up nicely:
image
EDIT: This image also looks blurry because of the image scaling, but if you click on the above pictures, you can see the difference clearly.

If I slowly increase the browser window size, I see it alternate between clear and blurry.

Expected behavior

Changing the browser window size shouldn't affect the quality of the text output.

Avalonia version

11.0.10

OS

Windows

Additional context

I am using Firefox browser. The app is here https://gosub.com/zurfur if you want to try and reproduce the error.

@gosub-com gosub-com added the bug label May 5, 2024
@timunie
Copy link
Contributor

timunie commented May 6, 2024

try to set RenderOptions maybe

@timunie
Copy link
Contributor

timunie commented May 6, 2024

please also try 11.1 beta, mind the breaking changes in 11.1 beta discussion

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

No branches or pull requests

3 participants