FcConfigFileInfoIterInit(3)

πŸ’– NAME πŸ’–

okay bestie, welcome to the FcConfigFileInfoIterInit(3) page β€” yep, this is section 3 of the fontconfig manual, and we're talking about FcConfigFileInfoIterInit, the function that initializes the iterator. it's giving "set it up so it starts at the very first one" energy, and honestly? slay. ✨

✨ SYNOPSIS ✨

#include <fontconfig/fontconfig.h>

void FcConfigFileInfoIterInit (FcConfig *config, FcConfigFileInfoIter *iter);

drop that include in and you're ready to call the function, no cap. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: FcConfigFileInfoIterInit initializes iter with the first iterator in the config file information list. that's the whole mission β€” first one, right out the gate. πŸŽ€

the config file information list is stored in numerical order for filenames β€” i.e. how fontconfig actually read them. so the order is not random, it's the actual read order, and that's lowkey iconic. πŸ“šβœ¨

⚠️ caveat time, and this one matters: this function isn't MT-safe. FcConfigReference must be called before using this, and then FcConfigDestroy when the relevant values are no longer referenced. no skipping that, fr fr. πŸ’…

πŸŽ€ SINCE πŸŽ€

this one has been around since version 2.12.91. vintage behavior, still relevant, we love to see it. πŸ’œ


that's the page, bestie. stay sparkly, keep your refs handled, and this was Fontconfig 2.17.0 dated 27 June 2025. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from