Bug 470476 - File portal uses an incorrect too-small font size
Summary: File portal uses an incorrect too-small font size
Status: REPORTED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.26.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-31 03:37 UTC by Peter
Modified: 2023-06-07 23:10 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
The portal as it appears on my system, tiny fonts and all. (123.50 KB, image/png)
2023-05-31 03:37 UTC, Peter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2023-05-31 03:37:01 UTC
Created attachment 159363 [details]
The portal as it appears on my system, tiny fonts and all.

SUMMARY
The file portal when an application calls it in order to save a file, etc. appears with fonts that are too small. My hypothesis is that it is not checking what the logical dpi of the system is set to, nor does it look at what font is chosen in system font settings.

STEPS TO REPRODUCE
1. Open the file portal through an application like a web browser.

OBSERVED RESULT
It opens, but fonts are too small.
Changing fonts/font sizes in system font settings does not seem to change the portal's presentation.

EXPECTED RESULT
For the portal to respect the logical font DPI set in system settings and/or the font/font size choices available.

SOFTWARE/OS VERSIONS
Operating System: SteamOS 3.4.6
KDE Plasma Version: 5.26.1
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 5.13.0-valve36-1-neptune (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
The logical DPI on this system is already set to 144.
Comment 1 Bug Janitor Service 2023-05-31 04:33:47 UTC
Thank you for the bug report!

Please note that Plasma 5.26.1 will not be supported for much longer by KDE; supported versions are 5.27, and 5.27 or newer.

Please upgrade to the latest version as soon as your distribution makes it available to you. Plasma is a fast-moving project, and bugs in one version are often fixed in the next one.
Comment 2 Nate Graham 2023-06-02 19:41:29 UTC
> The logical DPI on this system is already set to 144.
Note that this isn't a supported way to do scaling in a KDE environment. If you want everything on the screen to be bigger, the expected UX is to use the global scaling slider in System Settings > Display and Monitor. If yo just want the text to be a bit bigger for readability's take, the expected UX is to increase the font sizes in System Settings > Appearance > Fonts. In no case should it be necessary to change the Font DPI, and we're actually removing the ability to do so in Plasma 6.

Does the global scale slider help?
Comment 3 Peter 2023-06-03 21:39:58 UTC
(In reply to Nate Graham from comment #2)
> > The logical DPI on this system is already set to 144.
> Note that this isn't a supported way to do scaling in a KDE environment. If
> you want everything on the screen to be bigger, the expected UX is to use
> the global scaling slider in System Settings > Display and Monitor. If yo
> just want the text to be a bit bigger for readability's take, the expected
> UX is to increase the font sizes in System Settings > Appearance > Fonts. In
> no case should it be necessary to change the Font DPI, and we're actually
> removing the ability to do so in Plasma 6.
> 
> Does the global scale slider help?

Hi Nate,

Actually, the slider is what I have used the whole time. It is set for 150%. Where I got the 144 logical dpi information from is from the fonts panel where it shows checkbox "force font dpi" and 144 is listed there and also in "xrdb -query | grep -i xft". The number makes sense to me, since it is scaling. The true DPI of the physical display is something like 102 PPI, and of course X likes 96 as a base. 

It's not a big issue because the rest of the UI seems to be working, I just feel the portal behaviour should be consistent with the rest of the UI. I tried changing the font for "Small" to a different face to test, nothing changed.
Comment 4 Nate Graham 2023-06-06 16:23:22 UTC
Interesting. Perhaps the actual problem is that the portal isn't respecting your scaling settings.
Comment 5 Peter 2023-06-07 23:10:47 UTC
(In reply to Nate Graham from comment #4)
> Interesting. Perhaps the actual problem is that the portal isn't respecting
> your scaling settings.

I agree, it doesn't look like it is scaled at all. It is respecting font face though as I just tested and the font changed, just not the expected size.

Would the scaling issue for the file portal be a KDE or QT issue or another provider?