Contents

withFamily(_:)

Returns a new font descriptor based on the current object, but with the specified font family.

Declaration

func withFamily(_ newFamily: String) -> NSFontDescriptor

Parameters

  • newFamily:

    The replacement font family.

Return Value

The new font descriptor.

See Also

Modifying an Existing Font Descriptor