mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-22 01:40:17 -05:00
README: talk about DPI, add font on-the-fly features to feature list
This commit is contained in:
parent
5b98510ea4
commit
593dad7d2b
1 changed files with 33 additions and 0 deletions
33
README.md
33
README.md
|
|
@ -15,6 +15,7 @@
|
||||||
1. [Mouse](#mouse)
|
1. [Mouse](#mouse)
|
||||||
1. [Server (daemon) mode](#server-daemon-mode)
|
1. [Server (daemon) mode](#server-daemon-mode)
|
||||||
1. [Alt/meta](#alt-meta)
|
1. [Alt/meta](#alt-meta)
|
||||||
|
1. [Font DPI](#font-dpi)
|
||||||
1. [Requirements](#requirements)
|
1. [Requirements](#requirements)
|
||||||
1. [Running](#running)
|
1. [Running](#running)
|
||||||
1. [Building](#building)
|
1. [Building](#building)
|
||||||
|
|
@ -29,6 +30,8 @@
|
||||||
* Wayland native
|
* Wayland native
|
||||||
* DE agnostic
|
* DE agnostic
|
||||||
* User configurable font fallback
|
* User configurable font fallback
|
||||||
|
* On-the-fly font resize
|
||||||
|
* On-the-fly DPI font size adjustment
|
||||||
* Scrollback search
|
* Scrollback search
|
||||||
* Color emoji support
|
* Color emoji support
|
||||||
* "Server" mode (one master process, many windows)
|
* "Server" mode (one master process, many windows)
|
||||||
|
|
@ -216,6 +219,36 @@ mode_, `\E[?1034l`), and enabled again with `smm` (_set meta mode_,
|
||||||
'\E[?1034h`).
|
'\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
|
## Requirements
|
||||||
|
|
||||||
### Running
|
### Running
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue