---
name: "FcLangSetCompare"
section: "3"
platform: "linux"
package: "fontconfig"
version: "2:2.18.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FcLangSetCompare"
---

# FcLangSetCompare(3)

compare language sets

## NAME

FcLangSetCompare - compare language sets

## SYNOPSIS

**#include \<fontconfig/fontconfig.h\>**

**FcLangResult FcLangSetCompare (const FcLangSet \****ls\_a***, const FcLangSet \****ls\_b***);**

## DESCRIPTION

**FcLangSetCompare** compares language coverage for *ls\_a* and *ls\_b*. If they share any language and territory pair, this function returns FcLangEqual. If they share a language but differ in which territory that language is for, this function returns FcLangDifferentTerritory. If they share no languages in common, this function returns FcLangDifferentLang.
