Contents

init(descriptor:size:)

Returns a font that matches the specified font descriptor.

Declaration

init(descriptor: UIFontDescriptor, size pointSize: CGFloat)

Parameters

  • descriptor:

    The font descriptor to match.

  • pointSize:

    The size in points to which the font is scaled. If greater than 0.0, it has precedence over UIFontDescriptorSizeAttribute in descriptor.

Return Value

A font object for the specified descriptor and size.

Discussion

In most cases, you can simply use init(name:size:) to create standard scaled fonts.

See Also

Creating Fonts