PATCH: ascent and descent of fontset
- From: Chi-Deok Hwang <cdhwang sr hei co kr>
- To: gtk-list redhat com
- Subject: PATCH: ascent and descent of fontset
- Date: Fri, 27 Mar 1998 15:05:25 +0900 (KST)
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]