PATCH: ascent and descent of fontset



hello!

a quick tiny patch:
The ascent and descent of fontset is incorrect.
This is serious in some terminal programs.

--- gdkfont.c.orig	Fri Mar 27 14:29:14 1998
+++ gdkfont.c	Fri Mar 27 14:30:22 1998
@@ -87,9 +87,8 @@
 
       private->xfont = fontset;
       font->type = GDK_FONT_FONTSET;
-      /* how to define ascent and descent for fontset ??? */
-      font->ascent =  extent->max_logical_extent.height;
-      font->descent = font->ascent / 4 ;
+      font->ascent =  extent->max_logical_extent.height + extent->max_logical_extent.y;
+      font->descent = -extent->max_logical_extent.height.y;
     }
   return font;
 }



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