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
lshas a matching language and territory pair, this function returnsFcLangEqual. slay, perfect match, main character energy π - if
lshas a matching language but differs in which territory that language is for, this function returnsFcLangDifferentTerritory. so like... same language, wrong region, lowkey awkward but not a total loss π - if
lshas no matching language at all, this function returnsFcLangDifferentLang. 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
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms