fcft_set_scaling_filter(3)
β¨ fcft_set_scaling_filter(3) β¨
okay so bestie, welcome to the fcft corner of the manual β this one's all about fcft_set_scaling_filter, and it's genuinely a little glow-up button for your bitmap fonts π
πΈ NAME πΈ
fcft_set_scaling_filter β configures the filter to use when downscaling bitmap fonts
π¦ SYNOPSIS π¦
#include <fcft/fcft.h>
bool fcft_set_scaling_filter(enum fcft_scaling_filter filter);
π DESCRIPTION π
So fcft_set_scaling_filter() is the function that configures the filter the use when downscaling bitmap fonts (typically emoji fonts, iykyk π). Heads up though β this setting is a global mood, it affects all font instances, not just one.
β οΈ fr fr read this part: this function does not clear the glyph caches, so you should call it before any calls to fcft_codepoint_rasterize(). Caching comes for you if you're late π
Possible values for filter are, and yes we're listing all of them, no skips:
FCFT_SCALING_FILTER_NONEFCFT_SCALING_FILTER_NEARESTFCFT_SCALING_FILTER_BILINEARFCFT_SCALING_FILTER_IMPULSEFCFT_SCALING_FILTER_BOXFCFT_SCALING_FILTER_LINEARFCFT_SCALING_FILTER_CUBICFCFT_SCALING_FILTER_GAUSSIANFCFT_SCALING_FILTER_LANCZOS2FCFT_SCALING_FILTER_LANCZOS3FCFT_SCALING_FILTER_LANCZOS3_STRETCHED
Now let's break down the vibes π:
FCFT_SCALING_FILTER_NONEβ disables filtering. that's it, that's the whole personality, no filter no problem π«ΆFCFT_SCALING_FILTER_NEARESTandFCFT_SCALING_FILTER_BILINEARβ these two are the traditional filters, andnearestis the fastest of the bunch β‘- the rest? separable convolution filters. iconic behaviour honestly π
And if you never call this function at all? fcft just defaults to FCFT_SCALING_FILTER_CUBIC. she picked for you π
β RETURN VALUE β
On success, fcft_set_scaling_filter() returns true. On error, false is returned. simple as that π
π EXAMPLE π
See fcft_from_name() β go check that one out, it's got the whole demo π§
and that's a wrap on this page bestie!! π this was fcft_set_scaling_filter(3) from the fcft manual, version 3.3.3, dated 2026-04-09 β slay, go filter those emoji fonts, mwah π«Άβ¨
π¦ where this page comes from
- alpine 3.24: fcft-doc 3.3.3-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms