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) -> NSAttributedStringParameters
textStyleThe
UIFontTextStyletext style.weightThe weight of the font.
isItalicThe italic version of the font.
isConsensedThe 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) -> NSAttributedStringParameters
sizeThe size (in points) to which the font is scaled.
weightThe weight of the font.
isItalicThe italic version of the font.
isConsensedThe condensed version of the font.
Return Value
An attributed string with the 72 font and adjusted line spacing paragraph style.