logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fcft_set_scaling_filter - configures the filter to use when downscaling bitmap fonts

Description

fcft_set_scaling_filter()  configures  the  filter the use when downscaling bitmap fonts (typically emoji
       fonts). The setting affects all font instances.

       This function does not clear the glyph caches  and  should  therefore  be  called  before  any  calls  to
       fcft_codepoint_rasterize().

       Possible values for filter are:

       •   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_STRETCHEDFCFT_SCALING_FILTER_NONE disables filtering.

       FCFT_SCALING_FILTER_NEAREST  and FCFT_SCALING_FILTER_BILINEAR are traditional filters, with nearest being
       the fastest.

       The rest are separable convolution filters.

       If this function is not called, fcft defaults to FCFT_SCALING_FILTER_CUBIC.

Example

       See fcft_from_name()

3.3.1                                              2025-03-22                         fcft_set_scaling_filter(3)

Name

       fcft_set_scaling_filter - configures the filter to use when downscaling bitmap fonts

Return Value

       On success, fcft_set_scaling_filter() returns true. On error, false is returned.

Synopsis

#include<fcft/fcft.h>boolfcft_set_scaling_filter(enumfcft_scaling_filterfilter);

See Also