FcFontSetDestroy(3)

πŸ’… FcFontSetDestroy β€” bestie, it's time to say bye

okay so this is FcFontSetDestroy(3), a section 3 manual page, and honestly? it's a short one. a little baby page. but it's important, so pay attention πŸŽ€


✨ NAME ✨

FcFontSetDestroy β€” destroy a font set. that's it. that's the whole job. clean, simple, iconic πŸ’–


🌸 SYNOPSIS 🌸

#include <fontconfig/fontconfig.h>

void FcFontSetDestroy (FcFontSet *s);

like, that's literally the whole thing. one include, one function, one pointer. no notes ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so FcFontSetDestroy destroys a font set. the way it works is exactly what it says on the tin β€” you hand it a font set, it goes poof πŸ’¨

but β€” and this is the part where you need to actually listen, bestie β€” it also destroys any referenced patterns as well. so like, not just the set itself. everything it's pointing at? also gone. so if you had other plans for those patterns, uh. those plans are cancelled 😭

no cap, this is a real caveat: destroying the font set destroys the patterns it references too. don't come for me later if you double-freed something πŸ™ˆ

🧚 sign-off 🧚

and that's the whole page, bestie! this little gem comes to you from Fontconfig 2.17.0, dated 27 June 2025 β€” and yes, FcFontSetDestroy(3) is still the name, still slaying, still out here freeing font sets since forever πŸ‘‘πŸ’œ

go forth and clean up your memory responsibly 🫢✨

πŸ“¦ where this page comes from