NSTextView
is a subclass of NSText
which exposes the method:
- (void)setFont:(NSFont *)aFont
You should be able to set the font family and size via NSFont
and it's various methods. If you just want to set the size, you can use:
NSFont *font = [NSFont userFontOfSize:21.0];
To specify a font family and size, you can use:
+ (NSFont *)fontWithName:(NSString *)fontName size:(CGFloat)fontSize