1fcft_precompose(3)                   fcft                   fcft_precompose(3)
2
3
4

NAME

6       fcft_precompose - pre-compose two wide characters into one
7

SYNOPSIS

9       #include <fcft/fcft.h>
10
11       bool fcft_precompose(
12           const struct fcft_font *font, wchar_t base, wchar_t comb, bool
13           *base_is_from_primary, bool *comb_is_from_primary, bool *com‐
14           posed_is_from_primary);
15

DESCRIPTION

17       fcft_precompose() composes the base and comb wide characters into a
18       single wide character. For example, L'a' + L'\u0301' can be combined to
19       L'á'.
20
21       If *_is_from_primary are non-NULL, they will be true if the correspond‐
22       ing wide character exists in the primary font. If false, it does not
23       exist in the primary font and fcft_glyph_rasterize() will pick the
24       glyph from one of the fallback fonts.
25

RETURN VALUE

27       On success, fcft_precompose() returns a composed wide character. On er‐
28       ror, (wchar_t)-1 is returned.
29

SEE ALSO

31       fcft_glyph_rasterize(), fcft_kerning()
32
33
34
352.5.0                             2021-11-13                fcft_precompose(3)
Impressum