mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:30:37 +00:00
Correct some attribute changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15908 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
860495b553
commit
6e3278508b
2 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,11 @@
|
|||
2003-02-08 22:56 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSTextView_actions.m (-lowerBaseline:): Change the correct
|
||||
attribute.
|
||||
|
||||
(-turnOffLigatures:, -useStandardLigatures:): Correct the attribute
|
||||
changes.
|
||||
|
||||
2003-02-08 22:53 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/GSFontInfo.m (-defaultLineHeightForFont),
|
||||
|
|
|
@ -329,7 +329,7 @@ static NSNumber *float_plus_one(NSNumber *cur)
|
|||
if (r.location == NSNotFound)
|
||||
return;
|
||||
|
||||
[self _changeAttribute: NSSuperscriptAttributeName
|
||||
[self _changeAttribute: NSBaselineOffsetAttributeName
|
||||
inRange: r
|
||||
using: float_plus_one];
|
||||
}
|
||||
|
@ -464,7 +464,7 @@ static NSNumber *float_plus_one(NSNumber *cur)
|
|||
using: float_minus_one];
|
||||
}
|
||||
|
||||
-(void) useStandardLigatures: (id)sender
|
||||
-(void) turnOffLigatures: (id)sender
|
||||
{
|
||||
NSRange aRange = [self rangeForUserCharacterAttributeChange];
|
||||
|
||||
|
@ -475,14 +475,14 @@ static NSNumber *float_plus_one(NSNumber *cur)
|
|||
replacementString: nil])
|
||||
return;
|
||||
[_textStorage addAttribute: NSLigatureAttributeName
|
||||
value: [NSNumber numberWithInt: 1]
|
||||
value: [NSNumber numberWithInt: 0]
|
||||
range: aRange];
|
||||
[_layoutManager->_typingAttributes setObject: [NSNumber numberWithInt: 1]
|
||||
[_layoutManager->_typingAttributes setObject: [NSNumber numberWithInt: 0]
|
||||
forKey: NSLigatureAttributeName];
|
||||
[self didChangeText];
|
||||
}
|
||||
|
||||
-(void) turnOffLigatures: (id)sender
|
||||
-(void) useStandardLigatures: (id)sender
|
||||
{
|
||||
NSRange aRange = [self rangeForUserCharacterAttributeChange];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue