mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
[GSFontInfo -defaultLineHeightForFont]: descender is substracted not
added to ascender to give the lineHeight git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12474 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6d009268eb
commit
927b233997
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ static GSFontEnumerator *sharedEnumerator = nil;
|
|||
- (float)defaultLineHeightForFont
|
||||
{
|
||||
// ascent plus descent plus some suitable linegap
|
||||
return [self ascender] + [self descender] + [self pointSize]/ 11.0;
|
||||
return [self ascender] - [self descender] + [self pointSize]/ 11.0;
|
||||
}
|
||||
|
||||
- (NSSize) advancementForGlyph: (NSGlyph)aGlyph
|
||||
|
|
Loading…
Reference in a new issue