[pango: 1/2] pangowin32: register a "Sans-Serif" font
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango: 1/2] pangowin32: register a "Sans-Serif" font
- Date: Mon, 11 Apr 2022 20:26:52 +0000 (UTC)
commit 236be6e137fcff86f236bc72792cf2ed992836c0
Author: Christoph Reiter <reiter christoph gmail com>
Date: Mon Apr 11 21:28:43 2022 +0200
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
pango/pangowin32-fontmap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]