init(descriptor:size:)
Returns a font object for the specified font descriptor and font size.
Declaration
init?(descriptor fontDescriptor: NSFontDescriptor, size fontSize: CGFloat)Parameters
- fontDescriptor:
A font descriptor object.
- fontSize:
The size in points to which the font is scaled.
Return Value
A font object for the specified descriptor and size.
Discussion
In most cases, you can simply use init(name:size:) to create standard scaled fonts.