FcConfigGetFonts(3)
π FcConfigGetFonts β get that config font set, bestie π
okay so real talk: this is a fontconfig page (yes, the FcConfigGetFonts(3) one, you found it, slay β¨) and it's honestly shorter than my attention span, so let's get into it.
πΈ NAME πΈ
FcConfigGetFonts β Get config font set. that's it. that's the whole name. iconic behaviour honestly π
β¨ SYNOPSIS β¨
#include <fontconfig/fontconfig.h>
FcFontSet * FcConfigGetFonts (FcConfig *config, FcSetName set);
look at that signature. so clean. so main character. π
π¦ DESCRIPTION π¦
So this function returns one of the two sets of fonts that live inside the configuration β which one you get depends on whatever you passed in for set. Yes, two. There are exactly two. Don't come at me, that's just how it is π
Now the important part, bestie, listen up: this font set is owned by the library. Which means you must not modify it and you must not free it. Not even a little. Not even "just one tiny change". Fr fr, hands off π«Ά
If config is NULL, then the current configuration gets used instead. convenient? yes. a trap? also kinda.
β οΈ and now the caveat that will ruin your day if you ignore it: this function isn't MT-safe. like at all. You have to callFcConfigReferencebefore using this, and thenFcConfigDestroyonce the return value is no longer referenced. No cap, that's mandatory. skip it and you're on your own π
π the cute little sign-off π
that's the whole page, my love β no hidden options, no secret flags, just vibes and a font set you're not allowed to touch. mwah π
this has been the FcConfigGetFonts(3) page, straight from Fontconfig 2.17.0, dated 27 June 2025 β go forth and reference your configs properly π§ββοΈπ
π¦ 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