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 .fuiGlyphString for a given key

    Declaration

    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) -> 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.