Components
Styles for header and body text.
Font contains constants for UIFont instances of each Thumbprint text style, as well as font variants and helper functions for use with Dynamic Type (see Accessibility below).
Thumbprint supports both static fonts and Dynamic Type–the iOS feature that enables users to choose their preferred text/content size. To get a UIFont instance that will respect the user’s preferred content size, use one of the Font.dynamic(Text/Title)* constants or the dynamicFont property on a Font.TextStyle. If you will be using this font instance with an NSAttributedString, use the scaledFont(compatibleWith:) function on Font.TextStyle instead (otherwise the text size won’t scale as expected).
public static let title1: UIFontStatic font with title 1 style.

public static let title2: UIFontStatic font with title 2 style.

public static let title3: UIFontStatic font with title 3 style.

public static let title4: UIFontStatic font with title 4 style.

public static let title5: UIFontStatic font with title 5 style.

public static let title6: UIFontStatic font with title 6 style.

public static let title7: UIFontStatic font with title 7 style.

public static let title8: UIFontStatic font with title 8 style.

public static let text1: UIFontStatic font with text 1 style.

public static let text2: UIFontStatic font with text 2 style.

public static let text3: UIFontStatic font with text 3 style.

public static let dynamicTitle1: UIFontFont with title 1 style that supports scaling for accessibility.
public static let dynamicTitle2: UIFontFont with title 2 style that supports scaling for accessibility.
public static let dynamicTitle3: UIFontFont with title 3 style that supports scaling for accessibility.
public static let dynamicTitle4: UIFontFont with title 4 style that supports scaling for accessibility.
public static let dynamicTitle5: UIFontFont with title 5 style that supports scaling for accessibility.
public static let dynamicTitle6: UIFontFont with title 6 style that supports scaling for accessibility.
public static let dynamicTitle7: UIFontFont with title 7 style that supports scaling for accessibility.
public static let dynamicTitle8: UIFontFont with title 8 style that supports scaling for accessibility.
public static let dynamicText1: UIFontFont with text 1 style that supports scaling for accessibility.
public static let dynamicText2: UIFontFont with text 2 style that supports scaling for accessibility.
public static let dynamicText3: UIFontFont with text 3 style that supports scaling for accessibility.
public static var traitCollectionOverrideForTesting: UITraitCollection?Used by snapshot tests to forcefully apply the given trait collection. Do not use in application code.
static func loadCustomFonts()Prepare fonts for use.
static func scaledValue(_ value: CGFloat, for style: TextStyle) -> CGFloatScale a floating point value by the same multiplier that is currently being used for Dynamic Type on the specific text style.
case title1, title2, title3, title4, title5, title6, title7, title8, text1, text2, text3Enum cases for each Thumbprint text style.
public var font: UIFontStatic font with this text style.
public var dynamicFont: UIFontFont with this text style that supports scaling for accessibility.
public func scaledFont(compatibleWith traitCollection: UITraitCollection) -> UIFontFont with this text style that supports scaling for accessibility and is configured with a specific trait collection. When using attributed strings, UIContentSizeCategoryAdusting.adjustsFontForContentSizeCategory does not work, and therefore fonts must be configured with a specific trait collection and updated any time the preferred content size category on the relevant view changes.