Skip to main content
Structure A stylesheet that loads a custom font into the checkout.
Use googleFonts(_:weights:) to load a font from Google Fonts. Use cssURL(_:) for a Google Fonts link that googleFonts(_:weights:) cannot build, such as one with italic styles. The checkout ignores stylesheets from other domains. To use the loaded font, set its name in fontFamily or in family of a rule.

Initializers

init(from:)

Inherited from Decodable.init(from:).

Type Methods

cssURL(_:)

Loads the fonts that a CSS stylesheet declares.

Parameters

googleFonts(_:weights:)

Loads a font family from Google Fonts.

Parameters