Commit 823b4d43 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Corrections to computation of extents of text from a font set. (from

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>)
parent 11a80511
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment