1fcft_clone(3) fcft fcft_clone(3)
2
3
4
6 fcft_clone - copy an already instantiated font
7
9 #include <fcft/fcft.h>
10
11 struct fcft_font *fcft_clone(const struct fcft_font *font);
12
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
23 On success, fcft_clone() returns a pointer to a new fcft_font object.
24 On error, NULL is returned.
25
27 fcft_from_name(), fcft_destroy()
28
29
30
312.5.0 2021-11-13 fcft_clone(3)