Contents

CTFontDescriptorCreateWithNameAndSize(_:_:)

Creates a new font descriptor with the provided PostScript name and size.

Declaration

func CTFontDescriptorCreateWithNameAndSize(_ name: CFString, _ size: CGFloat) -> CTFontDescriptor

Parameters

  • name:

    The PostScript name to be used for the font descriptor as a Cfstring object.

  • size:

    The point size. If 0.0, the font size attribute (Kctfontsizeattribute) is omitted from the returned font descriptor.

Return Value

A new font descriptor reference with the given PostScript name and point size.

See Also

Creating Font Descriptors