init(name:size:)
Returns a font descriptor with the name and size attributes set to the given values.
Declaration
init(name fontName: String, size: CGFloat)Parameters
- fontName:
The value for
NSFontNameAttribute. - size:
The value for
NSFontSizeAttribute.
Return Value
The new font descriptor.