readme: dpi & fonts: focus on *current* behavior

The text was describing the original behavior, where output scaling
was completely ignored, and tacked on a “btw, starting with
foot-1.6...”.

Now, simply describe the current behavior, and be more clear about
_how_ dpi-aware can be changed.
This commit is contained in:
Daniel Eklöf 2021-03-27 12:28:39 +01:00
parent 649820eeba
commit 65012609b8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -345,22 +345,23 @@ This is not how it is meant to be. Fonts are measured in _point sizes_
**for a reason**; a given point size should have the same height on
all mediums, be it printers or monitors, regardless of their DPI.
Foot will always use the monitor's physical DPI value. Scale factors
are irrelevant (well, they affect e.g. padding, but not the font
size). This means the glyphs rendered by foot should always have the
same physical height, regardless of monitor.
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.
Foot will re-size the fonts on-the-fly when the window is moved
between screens with different DPIs values. If the window covers
This can be changed to either **always** use the monitors DPI
(regardless of scaling factor), or to **never** use it. See the
`dpi-aware` option in `foot.ini`. See the man page, **foot.ini**(5)
for more information.
When fonts are sized using the monitors DPI, glyphs should always
have the same physical height, regardless of monitor.
Furthermore, foot will re-size the fonts on-the-fly when the window is
moved between screens with different DPIs values. If the window covers
multiple screens, with different DPIs, the highest DPI will be used.
Starting with foot-1.6, the _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. This can be changed with the `dpi-aware`
option in `foot.ini`. See the man page, **foot.ini**(5) for more
information.
_Note_: if you configure **pixelsize**, rather than **size**, then DPI
changes will **not** change the font size. Pixels are always pixels.