mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
fcft: require fcft >= 3.3.0, add support for new scaling-filters
Update tweak.scaling-filter to recognize the new scaling filters added in fcft-3.3.0. Since fcft_set_scaling_filter() is deprecated in 3.3.0, don't use it anymore, and set the scaling filter via fcft_font_options instead.
This commit is contained in:
parent
cfa178ab25
commit
7f11ba59ef
6 changed files with 12 additions and 6 deletions
7
config.c
7
config.c
|
|
@ -2677,8 +2677,15 @@ parse_section_tweak(struct context *ctx)
|
|||
[FCFT_SCALING_FILTER_NONE] = "none",
|
||||
[FCFT_SCALING_FILTER_NEAREST] = "nearest",
|
||||
[FCFT_SCALING_FILTER_BILINEAR] = "bilinear",
|
||||
|
||||
[FCFT_SCALING_FILTER_IMPULSE] = "impulse",
|
||||
[FCFT_SCALING_FILTER_BOX] = "box",
|
||||
[FCFT_SCALING_FILTER_LINEAR] = "linear",
|
||||
[FCFT_SCALING_FILTER_CUBIC] = "cubic",
|
||||
[FCFT_SCALING_FILTER_GAUSSIAN] = "gaussian",
|
||||
[FCFT_SCALING_FILTER_LANCZOS2] = "lanczos2",
|
||||
[FCFT_SCALING_FILTER_LANCZOS3] = "lanczos3",
|
||||
[FCFT_SCALING_FILTER_LANCZOS3_STRETCHED] = "lanczos3-stretched",
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue