FcDirScan(3)

πŸ’– FcDirScan(3) πŸ’–

okay bestie, welcome to the FcDirScan(3) page from the fontconfig manual β€” lowkey niche, highkey useful, and we're gonna vibe through it together. ✨

🌸 NAME 🌸

FcDirScan β€” scan a font directory without caching it. no cap, that's literally the whole assignment. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

#include <fontconfig/fontconfig.h>

FcBool FcDirScan (FcFontSet *set, FcStrSet *dirs, FcFileCache *cache, FcBlanks *blanks, const FcChar8 *dir, FcBool force);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” this function has a very specific mood. when cache is not zero, or when force is FcFalse, FcDirScan currently returns FcFalse. that's it. that's the vibe check. 🫠

otherwise, it scans an entire directory and adds all the fonts it finds to set. any subdirectories it finds get added to dirs. πŸŽ€

and the big one, bestie: calling this function does not create any cache files. periodt. if you want caching, you use FcDirCacheRead() instead β€” iykyk. πŸ’…


✨ Fontconfig 2.17.0 β€” 27 June 2025 ✨ β€” that's the version and date, bestie. stan the footer. 🫢

πŸ“¦ where this page comes from