* Source/xlib/XGFont.m ([XGFontInfo -setupAttributes]): Use ascender and

descender informaton of the X11 font instead of using maximum bounding box.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16041 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-02-22 00:16:36 +00:00
parent d2d4e9cdb1
commit 2e966ea14d
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2003-02-20 Willem Rein Oudshoorn <woudshoo@xs4all.nl>
* Source/xlib/XGFont.m ([XGFontInfo -setupAttributes]): Use
ascender and descender informaton of the X11 font instead of using
maximum bounding box.
2003-02-19 Adam Fedor <fedor@gnu.org>
* Source/gsc/GSStreamContext.m (fpfloat): New function. Used everywhere

View file

@ -298,10 +298,10 @@ static BOOL XGInitAtoms(Display *dpy)
[fontDictionary setObject: familyName forKey: NSAFMFamilyName];
isFixedPitch = XGFontIsFixedPitch(xdpy, font_info);
isBaseFont = NO;
ascender = font_info->max_bounds.ascent;
ascender = font_info->ascent;
[fontDictionary setObject: [NSNumber numberWithFloat: ascender]
forKey: NSAFMAscender];
descender = -(font_info->max_bounds.descent);
descender = -(font_info->descent);
[fontDictionary setObject: [NSNumber numberWithFloat: descender]
forKey: NSAFMDescender];
fontBBox = NSMakeRect(