Type Method

fontDescriptorWithName:size:

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

Declaration

+ (NSFontDescriptor *)fontDescriptorWithName:(NSString *)fontName size:(CGFloat)size;

Parameters

fontName

The value for NSFontNameAttribute.

size

The value for NSFontSizeAttribute.

Return Value

The new font descriptor.

See Also

Creating a Font Descriptor

+ fontDescriptorWithFontAttributes:

Returns a font descriptor with a dictionary of attributes.

+ fontDescriptorWithName:matrix:

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

- initWithFontAttributes:

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