config: add tweak.scaling-filter

Use the new fcft_set_scaling_filter() API to use a non-default scaling
filter.

By default, we use lanczo3, the ‘best’ filter. This overrides the
default in fcft, which is ‘cubic’ filtering.
This commit is contained in:
Daniel Eklöf 2020-09-13 17:59:56 +02:00
parent 6a9725c7a6
commit 51a7e44fa2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 46 additions and 2 deletions

View file

@ -460,9 +460,21 @@ should not change these unless you understand what they do and note
that changing the default values *will* print a warning when launching
foot.
Note that these options may change, or be removed at any time, without
prior notice.
When reporting bugs, please mention if, and to what, you have changed
any of these options.
*scaling-filter*
Overrides the default scaling filter used when down-scaling bitmap
fonts (e.g. emoji fonts). Possible values are *none*, *nearest*,
*bilinear*, *cubic* or *lanczos3*. *cubic* and *lanczos3* produce
the best results, but are slower (with *lanczos3* being the best
_and_ slowest).
Default: _lanczos3_.
*allow-overflowing-double-width-glyphs*
Boolean. when enabled, double width glyphs with a character width
of 1 are allowed to overflow into the neighbouring cell.