convert(_:)
Converts the specified font using the settings in the receiver, with the aid of the shared NSFontManager if necessary.
Declaration
func convert(_ fontObj: NSFont) -> NSFontParameters
- fontObj:
The font to be converted.
Return Value
The converted font, or aFont itself if it can’t be converted.
Discussion
For example, if aFont is Helvetica Oblique 12.0 point and the user has selected the Times font family (and nothing else) in the Font panel, the font returned is Times Italic 12.0 point.