FcConfigSubstituteWithPat(3)

✨ NAME ✨

okay bestie, welcome to the FcConfigSubstituteWithPat(3) era πŸ’… this one is literally FcConfigSubstituteWithPat - Execute substitutions. no cap, that’s the whole name-vibe.

🌸 SYNOPSIS 🌸

#include <fontconfig/fontconfig.h>

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

πŸŽ€ DESCRIPTION πŸŽ€

So here’s the tea πŸ«–: this function performs the sequence of pattern modification operations. If kind is FcMatchPattern, then those tagged as pattern operations are applied. Else if kind is FcMatchFont, those tagged as font operations are applied, and p_pat is used for <test> elements with target=pattern.

It returns FcFalse if the substitution cannot be performed (due to allocation failure). Otherwise returns FcTrue. And if config is NULL, the current configuration is used. periodt πŸ’–

lowkey iconic behavior, highkey a whole substitution moment ✨

πŸ’– Fontconfig 2.17.0, dated 27 June 2025 β€” that’s the source/version + date sign-off, bestie, and we’re obsessed πŸŽ€

πŸ“¦ where this page comes from