mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 11:30:48 +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
e06aff244d
commit
7925725bb9
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>
|
2003-02-08 22:53 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Source/GSFontInfo.m (-defaultLineHeightForFont),
|
* Source/GSFontInfo.m (-defaultLineHeightForFont),
|
||||||
|
|
|
@ -329,7 +329,7 @@ static NSNumber *float_plus_one(NSNumber *cur)
|
||||||
if (r.location == NSNotFound)
|
if (r.location == NSNotFound)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
[self _changeAttribute: NSSuperscriptAttributeName
|
[self _changeAttribute: NSBaselineOffsetAttributeName
|
||||||
inRange: r
|
inRange: r
|
||||||
using: float_plus_one];
|
using: float_plus_one];
|
||||||
}
|
}
|
||||||
|
@ -464,7 +464,7 @@ static NSNumber *float_plus_one(NSNumber *cur)
|
||||||
using: float_minus_one];
|
using: float_minus_one];
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void) useStandardLigatures: (id)sender
|
-(void) turnOffLigatures: (id)sender
|
||||||
{
|
{
|
||||||
NSRange aRange = [self rangeForUserCharacterAttributeChange];
|
NSRange aRange = [self rangeForUserCharacterAttributeChange];
|
||||||
|
|
||||||
|
@ -475,14 +475,14 @@ static NSNumber *float_plus_one(NSNumber *cur)
|
||||||
replacementString: nil])
|
replacementString: nil])
|
||||||
return;
|
return;
|
||||||
[_textStorage addAttribute: NSLigatureAttributeName
|
[_textStorage addAttribute: NSLigatureAttributeName
|
||||||
value: [NSNumber numberWithInt: 1]
|
value: [NSNumber numberWithInt: 0]
|
||||||
range: aRange];
|
range: aRange];
|
||||||
[_layoutManager->_typingAttributes setObject: [NSNumber numberWithInt: 1]
|
[_layoutManager->_typingAttributes setObject: [NSNumber numberWithInt: 0]
|
||||||
forKey: NSLigatureAttributeName];
|
forKey: NSLigatureAttributeName];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void) turnOffLigatures: (id)sender
|
-(void) useStandardLigatures: (id)sender
|
||||||
{
|
{
|
||||||
NSRange aRange = [self rangeForUserCharacterAttributeChange];
|
NSRange aRange = [self rangeForUserCharacterAttributeChange];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue