Open heytyshawn opened 1 year ago
this is my first time opening an issue so let me know if i did something wrong
Thanks for this. Just for clarity, the text is the right size - but the window is too large, is that correct?
i'm sorry for the late reply, the window is the correct size I believe but the text is upscaled and blurry. I have to move it between monitors for it to sccale down.
actually i after running the demo, the window is also too big at first and all the text are also upscaled and blurry when you launch the app. i screenshotted it over vs code so you could compare it to their text size. once i move the window back and forth between monitors everything scales down to the right size as shown in the screenshots
before
after
Thanks for this. Just for clarity, the text is the right size - but the window is too large, is that correct?
I'm not sure if I have to use the reply feature in order to ping you
Can you please describe the resolution, physical size and arrangement of each of your monitors?
Please can you switch fyne_Demo to the "Advanced" tab and quit it? Then load again. On the initial load read out the scale value, tell us the new value when you move to the other monitor, and then again what the value is when you move back?
Thanks!
@andydotxyz This one seems to turn cold, however I'm experiencing the same issue on my Ubuntu desktop.
When I run go run fyne.io/fyne/v2/cmd/fyne_demo@latest
and visit the "Advanced tab" I get the following values (in barely a second)
1.00
1.00
But then it flashes and turns into:
1.30
0.77
I haven't activated any scaling on my Ubuntu 23.04 laptop.
14-inch FHD, (1920 x 1080) 16:91920x1080 pixels, 144hz internal on a Asus Rog G14 Zephyrus
v2.3.5
go version go1.20.3 linux/amd64
Ubuntu Desktop 23.04, using Wayland Gnome Version 44.2 Linux 6.2.0-25-generic
EDIT Not able to test it between two displays until next week.
Given that the issue above is reported to be about multiple screens I don't see how your issue can be the same if you've not tested it with an external display?
From your info above I'm not sure that I see what the problem is, it seems to be identifying the DPI correctly (though not fast perhaps?)
I apologize if I was not clear about my problem, I felt that this was similar so I jumped on this issue.
My main problem is that FYNE_SCALE
isn't being treated correctly when I try to force it to "1", only want's to be "1.3", to try getting rid of the "blur".
Saw a solution to hard code the env FYNE_SCALE
using os.Setenv("FYNE_SCALE", "1")
at https://github.com/fyne-io/fyne/issues/2897 but without any different result.
And after looking around here and seeing this issue, I thought we've might be having the same issue.
Sorry about that and thanks for a great project 🫡
My main problem is that FYNE_SCALE isn't being treated correctly when I try to force it to "1", only want's to be "1.3", to try getting rid of the "blur".
That's not what FYNE_SCALE does. A value of 1 attempts to match the OS. On macOS and Windows that is easy as they have defined scale. On Linux this is not the case as each DE/WM handles it differently. We cannot work relative to pixel size because a UHDPI display would show your window at 1/2 the size or less of another screen. So we use the DPI to work out what a standard font size would use in pixels - that is the baseline (on your system this is 1.3). From there FYNE_SCALE goes up or down. So you could use 0.77 to take the 1.3 down to 1.0...
Can you please describe the resolution, physical size and arrangement of each of your monitors?
Please can you switch fyne_Demo to the "Advanced" tab and quit it? Then load again. On the initial load read out the scale value, tell us the new value when you move to the other monitor, and then again what the value is when you move back?
Thanks!
Can you help us with this info @heytyshawn ? I have not been able to replicate
See https://github.com/fyne-io/fyne/issues/3537#issuecomment-1793482457 for a possible explanation/workaround.
Although this is for a different OS, AFAIK Windows also uses the monitor's EDID to get its physical size, and glfw uses that same information.
Checklist
Describe the bug
When I run any fyne app the text is twice as big and blurry. I have another monitor plugged in and I have to move the window between screens to get it to scale down properly.
How to reproduce
You may have to do it 3-4 times but it'll eventually scale it down properly.
Screenshots
Example code
Fyne version
v2.3.0
Go compiler version
go1.19.3 windows/amd64
Operating system
Windows
Operating system version
Windows 11
Additional Information
SYSTEM MODEL: ASUS Tuf Gaming FX505DT OS: Windows 11 64 bit PROCESSOR: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx