FcConfigSubstitute(3)

💅 NAME 💅

okay so bestie, meet FcConfigSubstitute(3) — the manual page for Execute substitutions ✨. Yes, it’s giving “font config goes brrr” and honestly we’re obsessed.

🦋 SYNOPSIS 🦋

#include <fontconfig/fontconfig.h>

FcBool FcConfigSubstitute (FcConfig *config, FcPattern *p, FcMatchKind kind);

Like, that’s the whole signature, no cap. Copy it exactly, okay? 💖

🌸 DESCRIPTION 🌸

So here’s the tea ☕: FcConfigSubstitute calls FcConfigSubstituteWithPat setting p_pat to NULL. That’s literally the move.

It returns FcFalse if the substitution cannot be performed (due to allocation failure). Otherwise it returns FcTrue — slay when it works, sad little allocation moment when it doesn’t 😭.

If config is NULL, the current configuration is used. Periodt. 👑


mwah 💋 this iconic page is brought to you by Fontconfig 2.17.0, dated 27 June 2025. Now go substitute those fonts, bestie 🫶🎀

📦 where this page comes from