GdkWin32: Set the "gtk-hint-font-metrics" property

Helps for https://gitlab.gnome.org/GNOME/gtk/-/issues/5257
This commit is contained in:
Luca Bacci 2022-11-04 15:59:15 +01:00
parent 41f9f1d623
commit 1506de5669

View File

@ -127,6 +127,14 @@ _gdk_win32_get_setting (const char *name,
return FALSE;
}
}
else if (strcmp ("gtk-hint-font-metrics", name) == 0)
{
gboolean hint_font_metrics = TRUE;
GDK_NOTE(MISC, g_print("gdk_screen_get_setting(\"%s\") : %s\n", name,
hint_font_metrics ? "TRUE" : "FALSE"));
g_value_set_boolean (value, hint_font_metrics);
return TRUE;
}
else if (strcmp ("gtk-im-module", name) == 0)
{
if (_gdk_input_locale_is_ime)