summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2022-04-11 21:28:43 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2022-04-11 21:28:43 +0200
commit236be6e137fcff86f236bc72792cf2ed992836c0 (patch)
tree86ecc1d7a8da804583556c7b1561dc5aaf2f9fb7 /pango
parentd152b1bae9153476cf057f816ae3ce96b7b538a8 (diff)
downloadpango-236be6e137fcff86f236bc72792cf2ed992836c0.tar.gz
pangowin32: register a "Sans-Serif" font
This creates a fake font family which will fall back to the first available font in the alias list and as a result pango_win32_font_map_load_font() will no longer fail for "sans-serif". This was already done for other aliases, but for some reason not for "sans-serif". See #680
Diffstat (limited to 'pango')
-rw-r--r--pango/pangowin32-fontmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index 43cffc37..8130204e 100644
--- a/pango/pangowin32-fontmap.c
+++ b/pango/pangowin32-fontmap.c
@@ -729,8 +729,9 @@ _pango_win32_font_map_init (PangoWin32FontMap *win32fontmap)
g_hash_table_foreach (win32fontmap->families, synthesize_foreach, win32fontmap);
- /* Create synthetic "Sans", "Serif", "Monospace", "Cursive", "Fantasy" and "System-ui" families */
+ /* Create synthetic "Sans", "Sans-Serif", "Serif", "Monospace", "Cursive", "Fantasy" and "System-ui" families */
create_standard_family (win32fontmap, "Sans");
+ create_standard_family (win32fontmap, "Sans-Serif");
create_standard_family (win32fontmap, "Serif");
create_standard_family (win32fontmap, "Monospace");
create_standard_family (win32fontmap, "Cursive");