FcConfigAppFontAddDir(3)

πŸ’– FcConfigAppFontAddDir πŸ’–

okay bestie, you're on the FcConfigAppFontAddDir(3) page of the fontconfig manual, and honestly? It's a cute little function with one job: fonts go in, directory gets scanned, application-specific font set gets fed πŸ“βœ¨

🌈 NAME 🌈

FcConfigAppFontAddDir β€” adds fonts from a directory into the font database. iconic behavior, no notes πŸ’…

✨ SYNOPSIS ✨

#include <fontconfig/fontconfig.h>

FcBool FcConfigAppFontAddDir (FcConfig *config, const FcChar8 *dir);

🌸 DESCRIPTION 🌸

So here's the tea: FcConfigAppFontAddDir scans the directory you give it in dir for fonts, and it adds each font it finds to the application-specific set of fonts πŸŽ€. Every single one it finds gets added β€” it's giving collector energy, fr fr.

It returns FcFalse if the fonts cannot be added β€” the page attributes that to allocation failure, so like, memory said β€œnot today” 😭. Otherwise, it returns FcTrue πŸ’–.

If config is NULL, the current configuration is used. That's it, that's the function, and it ate πŸ‘‘


sign-off szn: Fontconfig 2.17.0, 27 June 2025 β€” mwah, bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from