fcft_clone(3)

fcft_clone3

Copy an already instantiated font

Usage

#include <fcft/fcft.h>

struct fcft_font *fcft_clone(const struct fcft_font *font);

Overview

fcft_clone() creates a new instance by copying font. fcft internally uses reference counting, making this operation very fast (much faster than explicitly instantiating a new font using fcft_from_name()).

To free all resources associated with the both the original font, and the cloned font, fcft_destroy() must be called for both the original font, and the clone.

Return value

On success, fcft_clone() returns a pointer to a new fcft_font object. On error, NULL is returned.

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From fcft 3.3.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.