---
name: "fcft_clone"
section: "3"
platform: "linux"
package: "fcft"
version: "3.3.3-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/fcft_clone"
---

# fcft\_clone(3)

copy an already instantiated font

## NAME

fcft\_clone - copy an already instantiated font

## SYNOPSIS

**#include \<fcft/fcft.h\>**

**struct fcft\_font \*fcft\_clone(const struct fcft\_font \****font***);**

## DESCRIPTION

**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.

## SEE ALSO

**fcft\_from\_name**(), **fcft\_from\_name2**(), **fcft\_destroy**()
