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
- fedora 43: fontconfig-devel 2.17.0-3.fc43 · HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 · HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 · HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 · HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms