Contents

withFace(_:)

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

Declaration

func withFace(_ newFace: String) -> NSFontDescriptor

Parameters

  • newFace:

    The replacement font face.

Return Value

The new font descriptor.

See Also

Modifying an Existing Font Descriptor