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:
Riccardo Mottola 2016-03-17 18:07:59 +00:00
parent d32078bd43
commit 715c206bab

View file

@ -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];