[gtk/wip/otte/win32-cleanup: 53/63] win32: Remove Pango workaround




commit 461a263828debda5e3392b82c74719b480743e93
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jul 21 02:04:50 2021 +0200

    win32: Remove Pango workaround
    
    The workaround was only necessary for Pango < 1.43.

 gdk/win32/gdkproperty-win32.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/gdk/win32/gdkproperty-win32.c b/gdk/win32/gdkproperty-win32.c
index 0cbd3f0095..15ed2714df 100644
--- a/gdk/win32/gdkproperty-win32.c
+++ b/gdk/win32/gdkproperty-win32.c
@@ -192,15 +192,6 @@ _gdk_win32_get_setting (const char *name,
 
       if (font_name)
         {
-          /* The pango font fallback list got fixed during 1.43, before that
-           * using anything but "Segoe UI" would lead to a poor glyph coverage */
-          if (pango_version_check (1, 43, 0) != NULL &&
-              g_ascii_strncasecmp (font_name, "Segoe UI", strlen ("Segoe UI")) != 0)
-            {
-              g_free (font_name);
-              return FALSE;
-            }
-
           GDK_NOTE(MISC, g_print("gdk_screen_get_setting(\"%s\") : %s\n", name, font_name));
           g_value_take_string (value, font_name);
           return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]