CTFontDescriptorCreateWithNameAndSize(_:_:)
Creates a new font descriptor with the provided PostScript name and size.
Declaration
func CTFontDescriptorCreateWithNameAndSize(_ name: CFString, _ size: CGFloat) -> CTFontDescriptorParameters
- 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
CTFontDescriptorCreateWithAttributes(_:)CTFontDescriptorCreateCopyWithAttributes(_:_:)CTFontDescriptorCreateCopyWithVariation(_:_:_:)CTFontDescriptorCreateCopyWithFeature(_:_:_:)CTFontDescriptorCreateCopyWithFamily(_:_:)CTFontDescriptorCreateCopyWithSymbolicTraits(_:_:_:)CTFontDescriptorCreateMatchingFontDescriptors(_:_:)CTFontDescriptorCreateMatchingFontDescriptor(_:_:)