FcGetDefaultLangs(3)

πŸ’… FcGetDefaultLangs(3)

okay bestie, welcome to a Fontconfig manual page. we're folding the manual name in right here: this is Fontconfig, and this page is about FcGetDefaultLangs. let's get into it. ✨


🌸 NAME 🌸

FcGetDefaultLangs β€” get the default languages list. that's the whole vibe. πŸ’–

✨ SYNOPSIS ✨

#include <fontconfig/fontconfig.h>

FcStrSet * FcGetDefaultLangs (void);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: you call this function and it returns a string set of the default languages according to the environment variables on the system. the env vars are literally the main characters here.

It looks for them in this exact order:

  1. FC_LANG
  2. LC_ALL
  3. LC_CTYPE
  4. LANG

and then, if there are no valid values in those environment variables, "en" will be set as fallback. safety net activated, periodt. 🫢

🚨 important era: this function has been replaced by FcConfigGetDefaultLangs and will be deprecated. so like, she's being replaced and the deprecation is coming β€” noted, no cap. πŸ’€

πŸŽ€ SINCE πŸŽ€

version 2.9.91 β€” a vintage icon, honestly. ⭐


and that's the page, bestie πŸ’– Fontconfig 2.17.0, dated 27 June 2025 β€” cute sign-off, slay. πŸŽ€βœ¨

πŸ“¦ where this page comes from