osx Creating an NSFont object


Example

The preferred and most common way of making an NSFont object is the following:

Objective-C

// Name is PostScript name of font; size is in points.
NSFont *essayFont = [NSFont fontWithName:@"Times New Roman" size:12.0];