Contents

CTFontDescriptorCreateCopyWithFamily(_:_:)

Creates a copy of the font descriptor in the specified family based on the traits of the original.

Declaration

func CTFontDescriptorCreateCopyWithFamily(_ original: CTFontDescriptor, _ family: CFString) -> CTFontDescriptor?

Parameters

  • original:

    The original font descriptor.

  • family:

    The name of the desired family.

Return Value

A new font descriptor with the original traits in the given family, or NULL if no matching font descriptor is found in the system.

See Also

Creating Font Descriptors