fcft_set_scaling_filter3
Configures the filter to use when downscaling bitmap fonts
Usage
#include <fcft/fcft.h>
bool fcft_set_scaling_filter(enum fcft_scaling_filter filter);
Overview
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_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.
Return value
On success, fcft_set_scaling_filter() returns true. On error, false is returned.
Examples
See fcft_from_name()
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.