mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-14 06:31:31 +00:00
use fixed font size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/branches/ptyview_with_pipes@39560 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d32078bd43
commit
715c206bab
1 changed files with 5 additions and 11 deletions
|
@ -87,22 +87,16 @@
|
|||
str = [str stringByAppendingString:@"\n"];
|
||||
}
|
||||
|
||||
textAttributes = nil;
|
||||
textAttributes = [NSMutableDictionary dictionary];
|
||||
[textAttributes setObject:[NSFont userFixedPitchFontOfSize:0] forKey:NSFontAttributeName];
|
||||
if (color)
|
||||
{
|
||||
textAttributes = [NSMutableDictionary dictionary];
|
||||
|
||||
[textAttributes setObject:color forKey:NSForegroundColorAttributeName];
|
||||
}
|
||||
|
||||
if (textAttributes)
|
||||
{
|
||||
attrStr = [[NSAttributedString alloc] initWithString: str
|
||||
attributes: textAttributes];
|
||||
}
|
||||
else
|
||||
{
|
||||
attrStr = [[NSAttributedString alloc] initWithString: str];
|
||||
}
|
||||
attrStr = [[NSAttributedString alloc] initWithString: str
|
||||
attributes: textAttributes];
|
||||
|
||||
[[self textStorage] appendAttributedString: attrStr];
|
||||
[attrStr release];
|
||||
|
|
Loading…
Reference in a new issue