NSAttributedString
public extension NSAttributedString
-
Create an attributed string with the 72 font and adjusted line spacing paragraph style.
Supported attributes:
Regular
,Italic
,Light
,Bold
,BoldItalic
,Black
,Condensed
,CondensedBold
.Declaration
Swift
func withPreferredFioriFont(forTextStyle textStyle: UIFontTextStyle, weight: UIFont.Weight = .regular, isItalic: Bool = false, isCondensed: Bool = false) -> NSAttributedString
Parameters
textStyle
The
UIFontTextStyle
text style.weight
The weight of the font.
isItalic
The italic version of the font.
isConsensed
The condensed version of the font.
Return Value
An attributed string with the 72 font and adjusted line spacing paragraph style.
-
Create an attributed string with the 72 font and adjusted line spacing paragraph style.
Supported attributes:
Regular
,Italic
,Light
,Bold
,BoldItalic
,Black
,Condensed
,CondensedBold
.Declaration
Swift
func withPreferredFioriFont(fixedSize size: CGFloat, weight: UIFont.Weight = .regular, isItalic: Bool = false, isCondensed: Bool = false) -> NSAttributedString
Parameters
size
The size (in points) to which the font is scaled.
weight
The weight of the font.
isItalic
The italic version of the font.
isConsensed
The condensed version of the font.
Return Value
An attributed string with the 72 font and adjusted line spacing paragraph style.