summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontmap.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2019-07-24 15:19:33 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-07-24 15:19:33 +0000
commit91054248b82bb756569dbfd05112ec54c2c1d8ba (patch)
tree2e5ce0fe6e875f9b6015cab6c8770929a9a55941 /pango/pangowin32-fontmap.c
parent9d284b4ae077552e80acd529559c0108e8d87a71 (diff)
downloadpango-91054248b82bb756569dbfd05112ec54c2c1d8ba.tar.gz
Add system-ui generic family support
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r--pango/pangowin32-fontmap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index 976a36cb..63d70c36 100644
--- a/pango/pangowin32-fontmap.c
+++ b/pango/pangowin32-fontmap.c
@@ -462,6 +462,9 @@ static const char * const builtin_aliases[] = {
"mono = \"dejavu sans mono,courier new,lucida console,courier monothai,mingliu,simsun,gulimche,ms gothic,sylfaen,kartika,latha,mangal,raavi\"",
"monospace = \"dejavu sans mono,courier new,lucida console,courier monothai,mingliu,simsun,gulimche,ms gothic,sylfaen,kartika,latha,mangal,raavi\"",
"emoji = \"segoe ui emoji,segoe ui symbol,segoe ui\"",
+ "cursive = \"commic sans ms\"",
+ "fantasy = \"gabriola,impact\"",
+ "system-ui = \"yu gothic ui,segoe ui,meiryo\"",
};
static void
@@ -734,10 +737,13 @@ _pango_win32_font_map_init (PangoWin32FontMap *win32fontmap)
g_hash_table_foreach (win32fontmap->families, synthesize_foreach, win32fontmap);
- /* Create synthetic "Sans", "Serif" and "Monospace" families */
+ /* Create synthetic "Sans", "Serif", "Monospace", "Cursive", "Fantasy" and "System-ui" families */
create_standard_family (win32fontmap, "Sans");
create_standard_family (win32fontmap, "Serif");
create_standard_family (win32fontmap, "Monospace");
+ create_standard_family (win32fontmap, "Cursive");
+ create_standard_family (win32fontmap, "Fantasy");
+ create_standard_family (win32fontmap, "System-ui");
win32fontmap->resolution = (PANGO_SCALE / (double) GetDeviceCaps (_pango_win32_hdc, LOGPIXELSY)) * 72.0;
}