Re: Font DPI and screen scaling

2020-06-07 Thread René J . V . Bertin
On Sunday June 07 2020 22:39:51 Frank Steinmetzger wrote:

>“People usually scale their UI by forcing a DPI value in font settings.
>This is wrong and they should use screen scaling instead.”

This is actually wrong as a statement. By changing the font DPI value you 
control only those parts of the UI that are scaled to text that should be 
rendered inside, aligned or whatever. Personally I think that's the appropriate 
approach if you want to be able to read displayed text without needing a 
magnifier but also want to take advantage of your big screen. What's the point 
of paying for a large hires screen if it will show the same amount of 
information as a lowly 1024x768 screen?


Incidentally, X just works with pixel and pixel co-ordinates, all the scaling 
magic happens in higher level specialised libraries (like freetype) and 
"middleware" (fQt, GTk, ...)

Other than that I don't really have an answer for you, but I do have an 
additional question: are you planning to run your applications only locally or 
will you also be using your computers as remote X11 terminals? In the latter 
case the problem becomes near impossible to solve: the software will use the 
DPI or scaling settings from the computer they're running on, not the ones for 
the display they're rendering to.

R


Font DPI and screen scaling

2020-06-07 Thread Frank Steinmetzger
Hey ho fellows,

recently, when I was reading up on current Plasma developments on reddit and
pointieststick.com, I found a blog post with the following statement (from
memory, I can’t find the actual source anymore):

“People usually scale their UI by forcing a DPI value in font settings.
This is wrong and they should use screen scaling instead.”

Up until now I was using a normal PC with a monitor and a small laptop. Two
weeks ago I bought a used Tablet and set up a new system and user with KDE
on it. This makes my collection of devices look like thus:

Description   SizePixels  Resolution

Old PC monitor17″ 1280×102496 dpi
Current monitor   27″ 2560×1440   109 dpi
Thinkpad  12.5″   1920×1080   176 dpi
Surface Go10″ 1800×1200   216 dpi

In your valued experience/opinion, what is the appropriate way of ensuring
that a 10 pt font has the same physical size on all screens if I use display
scaling exclusively? Is a screen scale of 100 % assuming 96 dpi?

I have been using a forced DPI value because even though screens report
their proper physical size and it is shown in xrandr, it is not obeyed in X,
which instead reverts to 96 dpi and shows fonts too small (pixel height too
low).

Thanks for any insight you may have.

-- 
Gruß | Greetings | Qapla’
Why do Java developers wear glasses? – Because they don’t C#.


signature.asc
Description: PGP signature