-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
[editor bug] Fonts blurry with display scaling 200% in GNOME using X11 #501
Comments
Hi, this is because Fyrox uses bitmap fonts and bakes font atlas in 1:1 ratio. |
I see. Do you think it's feasible to change that? If I were to take a look at it myself, where should I start? |
Hard to tell, the problem is quite complex. At first, when display scaling is applied to the UI, it just scales the geometry of the text (each quad per glyph). This means that the UI does not care what is actually placed on these text quads, it just generates geometry of a proper size. The renderer then using a font atlas to render glyphs. This is where the problem hides - font atlas was generated to 100% display scaling, but used with 200%. So you can begin at https://github.com/FyroxEngine/Fyrox/blob/master/fyrox-ui/src/ttf.rs and try to play with the font atlas bitmap size. |
Hmm, so no support for Signed Distance Field fonts? |
This issue should be partially fixed by layout rounding feature, that was added recently. |
The fonts in the editor look blurry. Note that it's only the fonts: other graphics such as the scene preview and icons scale up properly.
Here's a close-up:
And here's a comparison with another window with correct scaling:
Some information about my system:
The text was updated successfully, but these errors were encountered: