config: add ‘dpi-aware’ option, defaulting to enabled

When disabled, foot no longers uses outputs’ DPI to scale the
font. Instead, it uses the outputs’ scaling factor.

That is, instead of appending “:dpi=123” to the fontconfig string,
modify the “:pixelsize” or “:size” attribute.

Closes #206
This commit is contained in:
Daniel Eklöf 2020-11-17 17:59:31 +01:00
parent 587fce68fa
commit 8e7658a135
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 87 additions and 11 deletions

View file

@ -59,6 +59,10 @@
* **bold-text-in-bright** option to `foot.ini`. When enabled, bold
text is rendered in a brighter color
(https://codeberg.org/dnkl/foot/issues/199).
* **dpi-aware** option to `foot.ini`. The default, **enabled**,
implements foot's old font sizing behavior. But, when **disabled**,
foot will ignore the monitors' DPI and instead size fonts using the
scale factor alone (https://codeberg.org/dnkl/foot/issues/206).
### Changed