[Fontconfig] Mongolian, other, language mappings
Behdad Esfahbod
behdad at behdad.org
Wed Oct 24 21:30:24 UTC 2018
I have lost my push access since the gitlab migration. Here's a trivial
bugfix:
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Wed Oct 24 13:20:40 2018 -0700
Fix name-table language code mapping for Mongolian
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 07978cf..cb79f20 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -193,9 +193,9 @@ static const FcFtLanguage fcFtLanguage[] = {
{ TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_KIRGHIZ, "ky" },
{ TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_TAJIKI, "tg" },
{ TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_TURKMEN, "tk" },
- { TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_MONGOLIAN, "mo" },
- { TT_PLATFORM_MACINTOSH,
TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT,"mo" },
- { TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT,
"mo" },
+ { TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_MONGOLIAN, "mn" },
+ { TT_PLATFORM_MACINTOSH,
TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT,"mn" },
+ { TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT,
"mn" },
{ TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_PASHTO, "ps" },
{ TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_KURDISH, "ku" },
{ TT_PLATFORM_MACINTOSH, TT_MAC_LANGID_KASHMIRI, "ks" },
behdad:fc-lang 0$
Also, that language mapping in fcfreetype.c can use more work. I recently
imported that into HarfBuzz, and then improved it. Here's the improvements
that can be ported back to fontconfig:
https://github.com/harfbuzz/harfbuzz/pull/1254/commits/3b40cadcaa06ab0e14f094d409735fab2d554406
--
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig/attachments/20181024/301c2b0d/attachment.html>
More information about the Fontconfig
mailing list