summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-21 22:26:39 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-07-21 22:26:39 +0000
commit5319f448a052ab328deefea2a6a697fab2903ddf (patch)
treefd02ae53a0a4e3fc3eae85a1e4df69e4e3ebb11e
parentc063d8879ee538b8352d1e97184c513e0fda5670 (diff)
parent842e5675224adfc49ddadfeb084bf61166dc7101 (diff)
downloadpango-5319f448a052ab328deefea2a6a697fab2903ddf.tar.gz
Merge branch 'pango-win32-font-fallback-add-back-old-fallbacks' into 'master'
pangowin32: add back the old font fallback list for each registered font Closes #375 See merge request GNOME/pango!97
-rw-r--r--pango/pangowin32-fontmap.c11
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);