fcft_precompose(3)

fcft_precompose3

Pre-compose two wide characters into one

Usage

#include <fcft/fcft.h>

bool fcft_precompose(

const struct fcft_font *font, uint32_t base, uint32_t comb, bool *base_is_from_primary, bool *comb_is_from_primary, bool *composed_is_from_primary);

Overview

fcft_precompose() composes the base and comb wide characters into a single wide character. For example, L'a' + L'\u0301' can be combined to L'á'.

If *_is_from_primary are non-NULL, they will be true if the corresponding wide character exists in the primary font. If false, it does not exist in the primary font and fcft_codepoint_rasterize() will pick the glyph from one of the fallback fonts.

Return value

On success, fcft_precompose() returns a composed wide character. On error, (uint32_t)-1 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.