Changed the layout manager so that it now uses the default font height

rather than a hardcoded 12 when there is no text in the view


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13961 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-06-24 12:26:17 +00:00
parent e7ed1ed865
commit ef583e1d85

View file

@ -1,3 +1,20 @@
Mon Jun 24 13:17:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
Originated by a patch/suggestion by Serg Stoyan
<stoyan@on.com.ua>, rewritten by myself.
* Source/GSSimpleLayoutManager.m (defaultFontHeight): New static
inline function computing the height of the user font of the
default size.
([-boundingRectForGlyphRange:inTextContainer:]): Use
defaultFontHeight() instead of hardcoded 12.
([-lineFragmentRectForGlyphAtIndex:effectiveRange:]): Idem.
([-rectForCharacterIndex:]): Idem.
([-rebuildForRange:delta:inTextContainer:]): Idem.
([-rebuildForRange:delta:inTextContainer:]): Idem.
* Source/NSTextView.m
([-updateInsertionPointStateAndRestartTimer:]): Removed unused
code setting font size to 12 if it was 0.
Sat Jun 22 17:26:18 2002 Nicola Pero <n.pero@mi.flashnet.it>
* Source/NSMenuView.m ([-itemAdded:]): Fixed highlighting of