1fcft_clone(3)                        fcft                        fcft_clone(3)
2
3
4

NAME

6       fcft_clone - copy an already instantiated font
7

SYNOPSIS

9       #include <fcft/fcft.h>
10
11       struct fcft_font *fcft_clone(const struct fcft_font *font);
12

DESCRIPTION

14       fcft_clone() creates a new instance by copying font. fcft internally
15       uses reference counting, making this operation very fast (much faster
16       than explicitly instantiating a new font using fcft_from_name()).
17
18       To free all resources associated with the both the original font, and
19       the cloned font, fcft_destroy() must be called for both the original
20       font, and the clone.
21

RETURN VALUE

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

SEE ALSO

27       fcft_from_name(), fcft_destroy()
28
29
30
313.1.6                             2023-07-14                     fcft_clone(3)
Impressum