Hello everyone, I have an interesting problem. <Al...
# compose-desktop
f
Hello everyone, I have an interesting problem. Almost two years ago I came across an issue regarding rendering. This was solved by me changing some NVIDIA settings. It's all documented in that short thread. Lately I have decided to develop an application for my company using Compose, and - unfortunately - I came across the same issue, which, to be exact, is blurry text. I set up a Multiplatform project and prepared some sample buttons and labels to demonstrate the issue. Below I provided two screenshots - one of a desktop build and second one of a web build. The differences are particularly noticable in regard to the Cancel button. Anyone knows of any fixes? I came across this dead issue, which did not really help...
s
Weird, is this is on Windows?
s
Might be DPI related? Have you tried the desktop variant on different monitors?
Do you have the same issue when rendering text in a JavaFX window?
f
@Skaldebane yes. On my other PC with Windows the issue persists, but on some Windows VMs (with questionable sources for rendering) it does not.
@Stan van der Bend I have tried this on two monitors with different resolutions (and DPI). Doesn't seem to affect the problem. Although C++'s Qt had the same problem for me. I will try the FX version in a second
JavaFX's (default project template suggested by IntelliJ) text looks nice and crisp. No blurr for me
s
Interesting. The fact that Qt also shows the same behavior makes me think this is not a Compose issue
f
Based on my research it is a reoccurring issue for frameworks that target Windows. Source:
Thanks for that information, it's good that the cause is known! I feel like I'm always having this issue whenever a new multiplatform-framework targets windows. I remember similar issues when Electron was new, and Qt also has issues unless you manually mess with text rendering.
s
Yeah, it seems related to fractional scaling Try changing the display scale to 100%, does the issue persist?
Ah, just looked at the source you linked, seems that issue is still open... Try opening a new issue for it
f
Try changing the display scale to 100%, does the issue persist?
I have a 100% scaling. Changing resolution does nothing
Try opening a new issue for it
I commented under the issue I linked. Maybe it will be revived
👌 1