Regular

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

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

Constructors

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

Properties

family
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.
url
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"