mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 17:00:52 +00:00
* 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:
parent
412358a1ea
commit
b3fcdcbb2f
2 changed files with 8 additions and 2 deletions
|
@ -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>
|
2003-02-19 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Source/gsc/GSStreamContext.m (fpfloat): New function. Used everywhere
|
* Source/gsc/GSStreamContext.m (fpfloat): New function. Used everywhere
|
||||||
|
|
|
@ -298,10 +298,10 @@ static BOOL XGInitAtoms(Display *dpy)
|
||||||
[fontDictionary setObject: familyName forKey: NSAFMFamilyName];
|
[fontDictionary setObject: familyName forKey: NSAFMFamilyName];
|
||||||
isFixedPitch = XGFontIsFixedPitch(xdpy, font_info);
|
isFixedPitch = XGFontIsFixedPitch(xdpy, font_info);
|
||||||
isBaseFont = NO;
|
isBaseFont = NO;
|
||||||
ascender = font_info->max_bounds.ascent;
|
ascender = font_info->ascent;
|
||||||
[fontDictionary setObject: [NSNumber numberWithFloat: ascender]
|
[fontDictionary setObject: [NSNumber numberWithFloat: ascender]
|
||||||
forKey: NSAFMAscender];
|
forKey: NSAFMAscender];
|
||||||
descender = -(font_info->max_bounds.descent);
|
descender = -(font_info->descent);
|
||||||
[fontDictionary setObject: [NSNumber numberWithFloat: descender]
|
[fontDictionary setObject: [NSNumber numberWithFloat: descender]
|
||||||
forKey: NSAFMDescender];
|
forKey: NSAFMDescender];
|
||||||
fontBBox = NSMakeRect(
|
fontBBox = NSMakeRect(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue