From 65012609b8379cdbdab4ea39c66955476ed6722e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 27 Mar 2021 12:28:39 +0100 Subject: [PATCH] readme: dpi & fonts: focus on *current* behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 2c3281ad..644b2b55 100644 --- a/README.md +++ b/README.md @@ -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. +Foot’s default behavior is to use the monitor’s 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 monitor’s 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 monitor’s 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 monitor’s -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.