FontFace

data class FontFace(fontFamily: String, fontStyle: String, fontVariant: String, fontWeight: String, fontStretch: String, unicodeRange: String, src: String, platformFontFamily: String, fontVariationAxes: List<FontVariationAxis>?)

Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.

Constructors

FontFace
Link copied to clipboard
fun FontFace(fontFamily: String, fontStyle: String, fontVariant: String, fontWeight: String, fontStretch: String, unicodeRange: String, src: String, platformFontFamily: String, fontVariationAxes: List<FontVariationAxis>? = null)

Properties

fontFamily
Link copied to clipboard
val fontFamily: String
The font-family.
fontStretch
Link copied to clipboard
val fontStretch: String
The font-stretch.
fontStyle
Link copied to clipboard
val fontStyle: String
The font-style.
fontVariant
Link copied to clipboard
val fontVariant: String
The font-variant.
fontVariationAxes
Link copied to clipboard
val fontVariationAxes: List<FontVariationAxis>? = null
Available variation settings (a.k.a.
fontWeight
Link copied to clipboard
val fontWeight: String
The font-weight.
platformFontFamily
Link copied to clipboard
val platformFontFamily: String
The resolved platform font family
src
Link copied to clipboard
val src: String
The src.
unicodeRange
Link copied to clipboard
val unicodeRange: String
The unicode-range.

Sources

jvm source
Link copied to clipboard