String
extension String: FUIGlyphImage
-
Declaration
Swift
public var glyphText: String? { get } -
The styled text displayed as the glyphText
Declaration
Swift
public var attributedText: NSAttributedString! { get } -
Attributes returned as a
.fuiGlyphStringfor a given keyDeclaration
Swift
public var attributes: [NSAttributedStringKey : Any] { get } -
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.