Regular

data class Regular(val family: String? = null, val url: String? = null) : Parcelable

Wrapper model to include all types of fonts that can be provided

Constructors

Link copied to clipboard
constructor(family: String? = null, url: String? = null)

Properties

Link copied to clipboard
@SerializedName(value = "family")
val family: String? = null

Comma separated String of font families, using regular css formatting Note: When providing multi-word font families, the multi-word font family does not need to be in quotation marks.

Link copied to clipboard
@SerializedName(value = "url")
val url: String? = null

Comma separated String of font download URLs, using regular css/html formatting Example: url = "https://fonts.googleapis.com/css2?family=Inter:wght@100&display=swap"