FcLangSetHasLang(3)

✨ FcLangSetHasLang ✨

okay so this is a page from the fontconfig manual, section 3, bestie β€” it's the FcLangSetHasLang girlies' moment to shine πŸ’…


🌸 NAME 🌸

FcLangSetHasLang β€” the "does this langset actually speak your language" test, aka the vibe check for language support πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <fontconfig/fontconfig.h>

FcLangResult FcLangSetHasLang (const FcLangSet *ls, const FcChar8 *lang);

πŸ’– DESCRIPTION πŸ’–

okay so FcLangSetHasLang checks whether ls supports lang. literally that's the whole gig, no cap 🫢

it's giving three possible outcomes and honestly the way it decides is kinda iconic:

  • if ls has a matching language and territory pair, this function returns FcLangEqual. slay, perfect match, main character energy πŸ‘‘
  • if ls has a matching language but differs in which territory that language is for, this function returns FcLangDifferentTerritory. so like... same language, wrong region, lowkey awkward but not a total loss πŸ™ˆ
  • if ls has no matching language at all, this function returns FcLangDifferentLang. yeah bestie that's a no πŸ’€
fr fr, just pass your langset and your language and let it tell you which of the three it is β€” no guessing required ✨

πŸŽ€ the cute little sign-off πŸŽ€

that's the whole page, bestie! 🌈 this one came from Fontconfig 2.17.0, dated 27 June 2025 β€” screenshot it, put it on your wall, it's iconic πŸ“πŸ’œ go forth and check those langsets ✨🧚

πŸ“¦ where this page comes from