CTFontCreateCopyWithSymbolicTraits(_:_:_:_:_:)
Returns a new font in the same font family as the original with the specified symbolic traits.
Declaration
func CTFontCreateCopyWithSymbolicTraits(_ font: CTFont, _ size: CGFloat, _ matrix: UnsafePointer<CGAffineTransform>?, _ symTraitValue: CTFontSymbolicTraits, _ symTraitMask: CTFontSymbolicTraits) -> CTFont?Parameters
- font:
The original font reference on which to base the new font.
- size:
The point size for the font reference. If
0.0is specified, the original font’s size is preserved. - matrix:
The transformation matrix for the font. In most cases, set this parameter to be
NULL. IfNULLis specified, the original font’s matrix is preserved. - symTraitValue:
The value of the symbolic traits.
- symTraitMask:
The mask bits of the symbolic traits.
Return Value
A new font reference in the same family with the given symbolic traits. or NULL if none is found in the system.
See Also
Creating Fonts
CTFontCreateWithName(_:_:_:)CTFontCreateWithNameAndOptions(_:_:_:_:)CTFontCreateWithFontDescriptor(_:_:_:)CTFontCreateWithFontDescriptorAndOptions(_:_:_:_:)CTFontCreateUIFontForLanguage(_:_:_:)CTFontCreateCopyWithAttributes(_:_:_:_:)CTFontCreateCopyWithFamily(_:_:_:_:)CTFontCreateForString(_:_:_:)CTFontCreateForStringWithLanguage(_:_:_:_:)