mirror-ghostty/pkg/fontconfig
Pyry Takala d4c2376c2d Fix LangSet.hasLang() to compare against FcLangEqual instead of FcTrue
FcLangSetHasLang returns FcLangResult enum values:
- FcLangEqual (0): Exact match
- FcLangDifferentTerritory (1): Same language, different territory
- FcLangDifferentLang (2): Different language

The previous comparison to FcTrue (1) caused:
- Exact matches (0) to incorrectly return false
- Partial matches (1) to incorrectly return true

This fix changes the comparison to FcLangEqual (0) so hasLang()
correctly returns true only for exact language matches.

Fixes emoji font detection which relies on checking for 'und-zsye'
language tag support.
2025-11-24 20:34:07 +00:00
..
override/include pkg/fontconfig 2023-10-01 12:43:36 -07:00
build.zig zig-15: build binary builds 2025-10-03 07:10:41 -07:00
build.zig.zon build: mark most dependencies as lazy 2025-03-14 13:32:19 -07:00
c.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00
char_set.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00
common.zig fix tests building on Linux 2025-03-12 11:29:13 -07:00
config.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00
error.zig pkg/fontconfig: pattern get 2022-09-17 09:04:40 -07:00
font_set.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00
init.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00
lang_set.zig Fix LangSet.hasLang() to compare against FcLangEqual instead of FcTrue 2025-11-24 20:34:07 +00:00
main.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00
matrix.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00
object_set.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00
pattern.zig style: use decl literals 2025-05-26 21:50:14 -06:00
range.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00
test.zig change unmodified `var`s to `const`s in anticipation of zig changes 2023-11-17 15:46:46 +01:00
value.zig pkg/fontconfig: yeet usingns 2024-08-16 16:58:16 -07:00