gdk_text_extents bug
- From: Chi-Deok Hwang <cdhwang sr hei co kr>
- To: gtk-devel-list redhat com
- Subject: gdk_text_extents bug
- Date: Sat, 17 Oct 1998 09:17:14 +0900 (KST)
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]