Author: rmottola
Date: Thu Mar 17 19:07:59 2016
New Revision: 39560

URL: http://svn.gna.org/viewcvs/gnustep?rev=39560&view=rev
Log:
use fixed font size

Modified:
    
apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m

Modified: 
apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m?rev=39560&r1=39559&r2=39560&view=diff
==============================================================================
--- 
apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m
    (original)
+++ 
apps/projectcenter/branches/ptyview_with_pipes/Modules/Debuggers/ProjectCenter/PTYView.m
    Thu Mar 17 19:07:59 2016
@@ -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];


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to