Instance Method

fontDescriptorWithMatrix:

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

Declaration

- (NSFontDescriptor *)fontDescriptorWithMatrix:(NSAffineTransform *)matrix;

Parameters

matrix

The replacement font matrix.

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.

- 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.

- fontDescriptorWithDesign:

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

NSFontDescriptorSystemDesign

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