fcft\_destroy(3) fcft fcft\_destroy(3)

# [NAME](#NAME)

fcft\_destroy - free fcft\_font objects

# [SYNOPSIS](#SYNOPSIS)

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

**void fcft\_destroy(struct fcft\_font \*font);**

# [DESCRIPTION](#DESCRIPTION)

**fcft\_destroy**() frees the **fcft\_font** object *font*, which must have been created with **fcft\_from\_name**() or **fcft\_clone**().

After calling **fcft\_destroy**(), *font* can no longer be used, and all references to **fcft\_glyph** objects (retrieved with **fcft\_codepoint\_rasterize**()) are now invalid.

*font* may be NULL, in which case **fcft\_destroy**() is a no-op.

# [RETURN VALUE](#RETURN_VALUE)

None

# [SEE ALSO](#SEE_ALSO)

**fcft\_from\_name**(), **fcft\_from\_name2**(), **fcft\_clone**(), **fcft\_codepoint\_rasterize**()

2026-10-23 3.3.3

---

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