Re: Changing Fonts in NSTexView
Re: Changing Fonts in NSTexView
- Subject: Re: Changing Fonts in NSTexView
- From: Andreas Mayer <email@hidden>
- Date: Thu, 11 Jul 2002 14:30:53 +0200
Am Mittwoch den, 10. Juli 2002, um 21:12, schrieb Tom Gray:
I then tried to set the font with an instance of NSFont but for some
reason
my NSMutableString when displayed in my NSTextView does not seem to
take on
the font or size that I set with [myNSFont set].
This is the way I do it:
NSFont* font;
// set terminal font
font = [NSFont userFixedPitchFontOfSize:0.0];
[terminalOutlet setFont:font];
terminalOutlet is a *NSTextView object.
While I'm just using the default fixes pitch font, any other should work
the same.
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.