Type Method

fontDescriptorWithFontAttributes:

Returns a font descriptor with a dictionary of attributes.

Declaration

+ (NSFontDescriptor *)fontDescriptorWithFontAttributes:(NSDictionary<NSFontDescriptorAttributeName, id> *)attributes;

Parameters

attributes

The attributes for the font descriptor. If nil, the font descriptor’s dictionary will be empty.

Return Value

The new font descriptor.

See Also

Creating a Font Descriptor

+ fontDescriptorWithName:matrix:

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

+ fontDescriptorWithName:size:

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

- initWithFontAttributes:

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