FcFontSetAdd(3)

✨ NAME ✨

okay bestie, welcome to the FcFontSetAdd(3) page β€” this one is literally FcFontSetAdd - Add to a font set 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <fontconfig/fontconfig.h>

FcBool FcFontSetAdd (FcFontSet *s, FcPattern *font);

πŸ’… DESCRIPTION πŸ’…

So here’s the tea: this function adds a pattern to a font set ✨

And listen β€” the pattern is not copied before it gets inserted into the set. Like, it’s the same pattern, no dupe, no clone, no copy-paste moment πŸ’€

It returns FcFalse if the pattern cannot be inserted into the set β€” and that happens due to allocation failure 😭 Otherwise, it returns FcTrue and you’re slaying πŸ’–

bestie, remember: no copy is made before insertion. That detail is doing main character energy and you cannot ignore it πŸ‘‘

okay bye bestie β€” this was FcFontSetAdd(3) from Fontconfig 2.17.0, dated 27 June 2025 πŸ’…βœ¨

πŸ“¦ where this page comes from