Instance Method

fontDescriptorWithDesign:

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

Declaration

- (instancetype)fontDescriptorWithDesign:(NSFontDescriptorSystemDesign)design;

Parameters

design

The replacement design style for the font. For a list of possible values, see UIFontDescriptor.SystemDesign.

Return Value

The new font descriptor.

See Also

Modifying an Existing Font Descriptor

- fontDescriptorByAddingAttributes:

Returns a new font descriptor based on the current object, but with the specified attributes taking precedence over the existing ones.

- fontDescriptorWithFace:

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

- fontDescriptorWithFamily:

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

- fontDescriptorWithMatrix:

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

- fontDescriptorWithSize:

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

- fontDescriptorWithSymbolicTraits:

Returns a new font descriptor based on the current object, but with the specified symbolic traits taking precedence over the existing ones.

NSFontDescriptorSystemDesign

Constants for font designs, such as monospace, rounded, and serif.