FcConfigGetSysRoot(3)

okay so bestie, welcome to FcConfigGetSysRoot(3) β€” the tiny fontconfig function that tells you where this config's system root is at. No cap, it's a short one, but the caveats matter, so stay with me. πŸ’–

πŸŽ€ NAME πŸŽ€

  • FcConfigGetSysRoot β€” Obtain the system root directory

✨ SYNOPSIS ✨

#include <fontconfig/fontconfig.h>

const FcChar8 * FcConfigGetSysRoot (const FcConfig *config);

πŸ’… DESCRIPTION πŸ’…

So basically: FcConfigGetSysRoot obtains the system root directory in 'config' if available. That's the whole plot. ✨

And here's the important glue: all files (including file properties in patterns) obtained from this 'config' are relative to this system root directory. So yeah, this root is lowkey the reference point for those paths, iykyk. 🌸

⚠️ Warning, bestie β€” this function isn't MT-safe. FcConfigReference must be called before using this and then FcConfigDestroy when the return value is no longer referenced. Do not skip this, fr fr. πŸ’€

🌈 SINCE 🌈

This icon debuted in version 2.10.92. Periodt. ⭐

mwah πŸ’– β€” this page is from Fontconfig 2.17.0, dated 27 June 2025. bye bestie 🫢

πŸ“¦ where this page comes from