gdk_text_extents bug



Hello!

gdk_text_extents seems to give the wrong information when fontset is used.


--- gdkfont.c.orig	Fri Oct 16 23:54:00 1998
+++ gdkfont.c	Fri Oct 16 23:56:20 1998
@@ -385,13 +385,13 @@
       if (lbearing)
 	*lbearing = -ink.x;
       if (rbearing)
-	*rbearing = ink.y;
+	*rbearing = ink.width + ink.x;
       if (width)
 	*width = logical.width;
       if (ascent)
-	*ascent = ink.height;
+	*ascent = -ink.y;
       if (descent)
-	*descent = -ink.y;
+	*descent = ink.height + ink.y;
       break;
     }
 



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