Contents

convert(_:toSize:)

Returns a font object whose traits are the same as those of the given font, except for the size, which is changed to the given size.

Declaration

func convert(_ fontObj: NSFont, toSize size: CGFloat) -> NSFont

Parameters

  • fontObj:

    The font whose traits are matched.

  • size:

    The new font size.

Return Value

A font with matching traits except in the new size, or aFont if it can’t be converted.

See Also

Related Documentation

Converting Fonts Manually