gnome-terminal r3390 - trunk/src



Author: chpe
Date: Wed Mar 25 17:16:05 2009
New Revision: 3390
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3390&view=rev

Log:
Correctly handle font descriptions with absolute font size. Bug #576675, patch by Alexander Sack.

Modified:
   trunk/src/terminal-screen.c

Modified: trunk/src/terminal-screen.c
==============================================================================
--- trunk/src/terminal-screen.c	(original)
+++ trunk/src/terminal-screen.c	Wed Mar 25 17:16:05 2009
@@ -1065,9 +1065,14 @@
     g_object_get (profile, TERMINAL_PROFILE_FONT, &desc, NULL);
   g_assert (desc);
 
-  pango_font_description_set_size (desc,
-				   priv->font_scale *
-				   pango_font_description_get_size (desc));
+  if (pango_font_description_get_size_is_absolute (desc))
+    pango_font_description_set_absolute_size (desc,
+                                              priv->font_scale *
+                                              pango_font_description_get_size (desc));
+  else
+    pango_font_description_set_size (desc,
+                                     priv->font_scale *
+                                     pango_font_description_get_size (desc));
 
   vte_terminal_set_font (VTE_TERMINAL (screen), desc);
 



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