term: only scale using DPI if *all* monitors have a scaling factor or one

With dpi-aware=auto (the default), scale fonts using DPI *only*
if *all* available monitors have a scaling factor of one.

The idea is this: if a user, with multiple monitors, have enabled
scaling on *at least* one monitor, he/she has most likely done so to
match the size of his/hers other monitors.

For example, if the user has one monitor with a scaling factor of one,
and another one with a scaling factor of two, he/she expects things to
be twice as large on the second monitor.

If we (foot) scale using DPI on the first monitor, and using the
scaling factor on the second monitor, foot will *not* look twice as
big on the second monitor (this was the old behavior of
dpi-aware=auto).

Part of #714
This commit is contained in:
Daniel Eklöf 2021-09-19 11:58:34 +02:00
parent 2934a4e96c
commit fb77637eb9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 59 additions and 27 deletions

View file

@ -347,9 +347,9 @@ This is not how it is meant to be. Fonts are measured in _point sizes_
all mediums, be it printers or monitors, regardless of their DPI.
Foots default behavior is to use the monitors DPI to size fonts when
output scaling has been disabled. On monitors where output scaling has
been enabled, fonts will instead be sized using the scaling
factor.
output scaling has been disabled on **all** monitors. If at least one
monitor has output scaling enabled, fonts will instead by sized using
the scaling factor.
This can be changed to either **always** use the monitors DPI
(regardless of scaling factor), or to **never** use it, with the