mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 09:50:48 +00:00
(-layoutLineNewParagraph:): Place baseline higher.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15758 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6bd03e9102
commit
b432343546
2 changed files with 11 additions and 2 deletions
|
@ -361,7 +361,7 @@ typedef struct
|
|||
max_line_height = min;
|
||||
|
||||
line_height = [cache->font defaultLineHeightForFont];
|
||||
baseline = line_height + [cache->font descender];
|
||||
baseline = ([cache->font ascender] + [cache->font descender] + line_height) / 2.0;
|
||||
if (line_height < min)
|
||||
line_height = min;
|
||||
|
||||
|
@ -463,7 +463,7 @@ restart:
|
|||
if (new_height > line_height)
|
||||
{
|
||||
line_height = new_height;
|
||||
baseline = line_height + [f descender];
|
||||
baseline = ([cache->font ascender] + [cache->font descender] + line_height) / 2.0;
|
||||
goto restart;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue