mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 00:20:49 +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
c90372a21a
commit
1c5f6f4772
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2003-01-29 16:01 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
|
* Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:): Place
|
||||||
|
baseline higher (in relation to the line height).
|
||||||
|
|
||||||
|
* Source/NSLayoutManager.m (-textStorage:edited:range:changeInLength:
|
||||||
|
invalidatedRange:): Fix selection range adjustment when the entire
|
||||||
|
selection is removed.
|
||||||
|
|
||||||
2003-01-29 01:40 Alexander Malmberg <alexander@malmberg.org>
|
2003-01-29 01:40 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Headers/gnustep/gui/NSTextView.h, Source/NSTextView.m: Implement
|
* Headers/gnustep/gui/NSTextView.h, Source/NSTextView.m: Implement
|
||||||
|
|
|
@ -361,7 +361,7 @@ typedef struct
|
||||||
max_line_height = min;
|
max_line_height = min;
|
||||||
|
|
||||||
line_height = [cache->font defaultLineHeightForFont];
|
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)
|
if (line_height < min)
|
||||||
line_height = min;
|
line_height = min;
|
||||||
|
|
||||||
|
@ -463,7 +463,7 @@ restart:
|
||||||
if (new_height > line_height)
|
if (new_height > line_height)
|
||||||
{
|
{
|
||||||
line_height = new_height;
|
line_height = new_height;
|
||||||
baseline = line_height + [f descender];
|
baseline = ([cache->font ascender] + [cache->font descender] + line_height) / 2.0;
|
||||||
goto restart;
|
goto restart;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue