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
CTFontDescriptorCreateWithNameAndSize(_:_:)CTFontDescriptorCreateWithAttributes(_:)CTFontDescriptorCreateCopyWithAttributes(_:_:)CTFontDescriptorCreateCopyWithVariation(_:_:_:)CTFontDescriptorCreateCopyWithFeature(_:_:_:)CTFontDescriptorCreateCopyWithSymbolicTraits(_:_:_:)CTFontDescriptorCreateMatchingFontDescriptors(_:_:)CTFontDescriptorCreateMatchingFontDescriptor(_:_:)