summaryrefslogtreecommitdiff
path: root/pango/pangowin32.h
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-12-03 23:12:27 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-12-04 09:59:49 +0100
commitf523c25c12cd19c59fbc3db4a4fe08bae5307802 (patch)
tree00bfa381d049ef9878d6c28dd520767902857600 /pango/pangowin32.h
parent169044900b20cba827be72510396a52ecde9ed51 (diff)
downloadpango-f523c25c12cd19c59fbc3db4a4fe08bae5307802.tar.gz
pangowin32: Read the font fallback list from the registry instead of hardcoding it for some fonts.
We only had a fallback list for "Segoe UI" which is the default Windows font, but not on Chinese or Korean Windows version which use "JhengHei UI" etc. and fall back to "Segoe UI". Instead of hardcoding the fallbacks in the alias list read them from the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink) This should allow us to use the default Windows font by default in gtk+ on Win8+, see https://gitlab.gnome.org/GNOME/gtk/merge_requests/436 for details. This also bumps the required Windows version to Vista for RegGetValueW().
Diffstat (limited to 'pango/pangowin32.h')
-rw-r--r--pango/pangowin32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangowin32.h b/pango/pangowin32.h
index c9b440cb..99a738c9 100644
--- a/pango/pangowin32.h
+++ b/pango/pangowin32.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define STRICT
#ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0501 /* To get ClearType-related macros */
+#define _WIN32_WINNT 0x0600 /* To get ClearType-related macros */
#endif
#include <windows.h>
#undef STRICT