fcft\_set\_scaling\_filter(3) fcft fcft\_set\_scaling\_filter(3)

# [NAME](#NAME)

fcft\_set\_scaling\_filter - configures the filter to use when downscaling bitmap fonts

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;fcft/fcft.h&gt;**

**bool fcft\_set\_scaling\_filter(enum fcft\_scaling\_filter filter);**

# [DESCRIPTION](#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\_NONE**
- **FCFT\_SCALING\_FILTER\_NEAREST**
- **FCFT\_SCALING\_FILTER\_BILINEAR**
- **FCFT\_SCALING\_FILTER\_IMPULSE**
- **FCFT\_SCALING\_FILTER\_BOX**
- **FCFT\_SCALING\_FILTER\_LINEAR**
- **FCFT\_SCALING\_FILTER\_CUBIC**
- **FCFT\_SCALING\_FILTER\_GAUSSIAN**
- **FCFT\_SCALING\_FILTER\_LANCZOS2**
- **FCFT\_SCALING\_FILTER\_LANCZOS3**
- **FCFT\_SCALING\_FILTER\_LANCZOS3\_STRETCHED**

**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](#RETURN_VALUE)

On success, **fcft\_set\_scaling\_filter**() returns true. On error, false is returned.

# [EXAMPLE](#EXAMPLE)

See **fcft\_from\_name**()

2026-08-29 3.3.3

---

Document: fcft_set_scaling_filter(3) from fcft 3.3.3-r3 (Chainguard OS)
Source: https://codeberg.org/dnkl/fcft
