diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2019-07-21 16:06:55 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-07-21 16:06:55 +0200 |
commit | 842e5675224adfc49ddadfeb084bf61166dc7101 (patch) | |
tree | 1749e2978d0a41a4982ec90fed704d323447af08 /pango/pangowin32-fontmap.c | |
parent | 9f217e7f93f63bf1ee26e23dd978e1729461b9b1 (diff) | |
download | pango-842e5675224adfc49ddadfeb084bf61166dc7101.tar.gz |
pangowin32: add back the old font fallback list for each registered font
In f523c25c12c I changed the font fallback list from hardcoded to reading it from
the registry to cover all potentially default Windows UI fonts. Turns out that this
doesn't cover all of Unicode and breaks things like Marathi.
This adds back the language specific font fallbacks to each font read from the registry
to restore the old Unicode coverage.
Fixes #375
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r-- | pango/pangowin32-fontmap.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index 130b76e9..976a36cb 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -574,6 +574,17 @@ read_windows_fallbacks (GHashTable *ht_aliases) entry_len = wcslen (entry); } g_free (value_data); + + /* For some reason the default fallback list doesn't cover all of Unicode + * and Windows has additional fonts for certain languages. + * Some of them are listed in + * SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontMapperFamilyFallback + * but I couldn't find any docs for it. Feel free to improve this */ + g_string_append (line_buffer, + ",gisha,leelawadee,arial unicode ms,browallia new," + "mingliu,simhei,gulimche,ms gothic,sylfaen,kartika," + "latha,mangal,raavi"); + g_string_append (line_buffer, "\""); handle_alias_line (line_buffer, &errstring, ht_aliases); |