]> Pileus Git - ~andy/gtk/commitdiff
Corrections to computation of extents of text from a font set. (from
authorOwen Taylor <otaylor@redhat.com>
Sat, 12 Dec 1998 22:21:48 +0000 (22:21 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 12 Dec 1998 22:21:48 +0000 (22:21 +0000)
Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkfont.c (gdk_text_extents): Corrections
        to computation of extents of text from a font set.
        (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkfont.c
gdk/x11/gdkfont-x11.c

index 83360af65621e217ee0a94a8a906c7c4609be0dd..3a718d560ff9b9005742dc608b81138161af5bb1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkfont.c (gdk_text_extents): Corrections
+       to computation of extents of text from a font set.
+       (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
+         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)
+       
 Fri Dec 11 08:59:12 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtklistitem.c (gtk_list_item_style_set):
index 83360af65621e217ee0a94a8a906c7c4609be0dd..3a718d560ff9b9005742dc608b81138161af5bb1 100644 (file)
@@ -1,3 +1,10 @@
+Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkfont.c (gdk_text_extents): Corrections
+       to computation of extents of text from a font set.
+       (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
+         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)
+       
 Fri Dec 11 08:59:12 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtklistitem.c (gtk_list_item_style_set):
index 83360af65621e217ee0a94a8a906c7c4609be0dd..3a718d560ff9b9005742dc608b81138161af5bb1 100644 (file)
@@ -1,3 +1,10 @@
+Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkfont.c (gdk_text_extents): Corrections
+       to computation of extents of text from a font set.
+       (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
+         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)
+       
 Fri Dec 11 08:59:12 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtklistitem.c (gtk_list_item_style_set):
index 83360af65621e217ee0a94a8a906c7c4609be0dd..3a718d560ff9b9005742dc608b81138161af5bb1 100644 (file)
@@ -1,3 +1,10 @@
+Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkfont.c (gdk_text_extents): Corrections
+       to computation of extents of text from a font set.
+       (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
+         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)
+       
 Fri Dec 11 08:59:12 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtklistitem.c (gtk_list_item_style_set):
index 83360af65621e217ee0a94a8a906c7c4609be0dd..3a718d560ff9b9005742dc608b81138161af5bb1 100644 (file)
@@ -1,3 +1,10 @@
+Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkfont.c (gdk_text_extents): Corrections
+       to computation of extents of text from a font set.
+       (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
+         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)
+       
 Fri Dec 11 08:59:12 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtklistitem.c (gtk_list_item_style_set):
index 83360af65621e217ee0a94a8a906c7c4609be0dd..3a718d560ff9b9005742dc608b81138161af5bb1 100644 (file)
@@ -1,3 +1,10 @@
+Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkfont.c (gdk_text_extents): Corrections
+       to computation of extents of text from a font set.
+       (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
+         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)
+       
 Fri Dec 11 08:59:12 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtklistitem.c (gtk_list_item_style_set):
index 83360af65621e217ee0a94a8a906c7c4609be0dd..3a718d560ff9b9005742dc608b81138161af5bb1 100644 (file)
@@ -1,3 +1,10 @@
+Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkfont.c (gdk_text_extents): Corrections
+       to computation of extents of text from a font set.
+       (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
+         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)
+       
 Fri Dec 11 08:59:12 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtklistitem.c (gtk_list_item_style_set):
index 0308fa8e0d332914f54b2018d6657e661610ea81..094be0c41b6b2b9bf407abad074f156841186470 100644 (file)
@@ -489,15 +489,15 @@ gdk_text_extents (GdkFont     *font,
       fontset = (XFontSet) private->xfont;
       XmbTextExtents (fontset, text, text_length, &ink, &logical);
       if (lbearing)
-       *lbearing = -ink.x;
+       *lbearing = ink.x;
       if (rbearing)
-       *rbearing = ink.y;
+       *rbearing = ink.x + ink.width;
       if (width)
        *width = logical.width;
       if (ascent)
-       *ascent = ink.height;
+       *ascent = -ink.y;
       if (descent)
-       *descent = -ink.y;
+       *descent = ink.y + ink.height;
       break;
     }
 
index 0308fa8e0d332914f54b2018d6657e661610ea81..094be0c41b6b2b9bf407abad074f156841186470 100644 (file)
@@ -489,15 +489,15 @@ gdk_text_extents (GdkFont     *font,
       fontset = (XFontSet) private->xfont;
       XmbTextExtents (fontset, text, text_length, &ink, &logical);
       if (lbearing)
-       *lbearing = -ink.x;
+       *lbearing = ink.x;
       if (rbearing)
-       *rbearing = ink.y;
+       *rbearing = ink.x + ink.width;
       if (width)
        *width = logical.width;
       if (ascent)
-       *ascent = ink.height;
+       *ascent = -ink.y;
       if (descent)
-       *descent = -ink.y;
+       *descent = ink.y + ink.height;
       break;
     }