FcFontList(3)
β¨ FcFontList β like, the font-listing icon π
okay so bestie, first things first: this page is from the FcFontList(3) manual, and it's genuinely one of the most useful little cuties in the whole fontconfig girlie universe. let's get into it π
πΈ NAME πΈ
FcFontList β literally just "list fonts". that's it. that's the whole job. and she ate π
β¨ SYNOPSIS β¨
#include <fontconfig/fontconfig.h>
FcFontSet * FcFontList (FcConfig *config, FcPattern *p, FcObjectSet *os);
like yes, that's the whole signature. three args, one FcFontSet * coming back at you. no cap π¦
π DESCRIPTION π
okay so here's the vibe: FcFontList selects the fonts that match p, then it creates patterns from those fonts that contain only the objects in os, and then it returns the set of unique such patterns. unique is doing a lot of work in that sentence, so like, don't sleep on it π
and the config situation, because this is the part people always ask about in the group chat: if config is NULL, then the default configuration is checked to be up to date, and used. that's it. that's the whole deal. she's not mysterious, she's just efficient π«Ά
nerd note (affectionate): the patterns you get back are not the full font patterns β they're trimmed down to just the objects inos. so if your fav object isn't in there, it's not coming back. choose yourFcObjectSetlike you mean it π
β the whole thing in one breath β
- pass in a
config(orNULLβ default config, freshness-checked, then used β¨) - pass in
pβ the pattern your fonts need to match - pass in
osβ the objects that survive into the output patterns - get back an
FcFontSet *of the unique resulting patterns
periodt. that's the function π
π§ sign-off π§
and that's the page, bestie!! this one's from Fontconfig 2.17.0, dated 27 June 2025 β go forth and list some fonts, you absolute main character ππβ¨
π¦ 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