FcLangSetContains(3)

πŸ’… FcLangSetContains(3) πŸ’…

okay so this is a page from the fontconfig manual, and it's honestly a tiny little icon. it's all about checking whether one language set is a subset of another. short, sweet, slays.


✨ NAME ✨

FcLangSetContains β€” checks the langset subset relation 🫢 like is this whole vibe contained in that other vibe


🌸 SYNOPSIS 🌸

#include <fontconfig/fontconfig.h>

FcBool FcLangSetContains (const FcLangSet *ls_a, const FcLangSet *ls_b);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay bestie, here's the tea β˜• β€” FcLangSetContains returns FcTrue if ls_a contains every single language in ls_b. every one. no stragglers, no leftovers, all of them accounted for πŸ’―

so how does ls_a actually "contain" a language from ls_b? two ways, and they're both giving main character energy:

  • ls_a has exactly that language β€” like, an exact match, no cap 🎯
  • OR either the language or ls_a has no territory β€” so the territory situation is just... not a factor, and it still counts as contained 🌈

that's literally it. that's the whole check. short king of a function πŸ‘‘

ngl it's giving "subset check but make it about language tags and territories" β€” remember, the match has to be exact OR territory-free. those are the only two doors in πŸšͺ✨

πŸŽ€ a lil sign-off πŸŽ€

this page is from Fontconfig 2.17.0, dated 27 June 2025 β€” so go forth and subset-check with confidence, bestie πŸ’– periodt.

πŸ“¦ where this page comes from