FontScale

public extension FontScale
  • Cast constructor, converting any binary integer to a FontScale.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Leave the font size unchanged

    Declaration

    Swift

    static let none: Int
  • Change the font to a size suitable for superscripts

    Declaration

    Swift

    static let superscript: PangoFontScale
  • Change the font to a size suitable for subscripts

    Declaration

    Swift

    static let `subscript`: PangoFontScale
  • Change the font to a size suitable for Small Caps

    Declaration

    Swift

    static let smallCaps: PangoFontScale