Initializer

init(name:matrix:)

Returns a font descriptor with the name and matrix attributes set to the given values.

Declaration

init(name fontName: String, matrix: AffineTransform)

Parameters

fontName

The value for NSFontNameAttribute.

matrix

The value for NSFontMatrixAttribute.

Return Value

The new font descriptor.

See Also

Creating a Font Descriptor

init(name: String, size: CGFloat)

Returns a font descriptor with the name and size attributes set to the given values.

init(fontAttributes: [NSFontDescriptor.AttributeName : Any]?)

Initializes and returns a new font descriptor with the specified attributes.