From 593dad7d2b34de088b14e5dd0545ddaffd55342f Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 15 Feb 2020 20:59:34 +0100 Subject: README: talk about DPI, add font on-the-fly features to feature list --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index cbf2ffb6..7ee495c1 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ 1. [Mouse](#mouse) 1. [Server (daemon) mode](#server-daemon-mode) 1. [Alt/meta](#alt-meta) +1. [Font DPI](#font-dpi) 1. [Requirements](#requirements) 1. [Running](#running) 1. [Building](#building) @@ -29,6 +30,8 @@ * Wayland native * DE agnostic * User configurable font fallback +* On-the-fly font resize +* On-the-fly DPI font size adjustment * Scrollback search * Color emoji support * "Server" mode (one master process, many windows) @@ -216,6 +219,36 @@ mode_, `\E[?1034l`), and enabled again with `smm` (_set meta mode_, '\E[?1034h`). +## Font DPI + +Font sizes are apparently a complex thing. Many applications use a +fixed DPI of 96. They may also multiply it with the monitor's scale +factor. + +This results in fonts with different **physical** sizes (i.e. if +measured by a ruler) when rendered on screens with different DPI +values. Even if the configured font size is the same. + +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 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. + +_Tip_: QT applications can be configured to work this way too, by +exporting the environment variable `QT_WAYLAND_FORCE_DPI=physical`. + +_Note_: if you configure **pixelsize**, rather than **size**, then DPI +changes will **not** change the font size. Pixels are always pixels. + + ## Requirements ### Running -- cgit v1.3