FontWeight
Class
Common
class FontWeight(val weight: Int) : Comparable<FontWeight>
The thickness of the glyphs, in a range of 1, 1000
.
Parameters
weight | Font weight value in the range of 1, 1000 |
Companion Object
Properties
Common
val W100 = FontWeight(100)
Thin
Common
val W200 = FontWeight(200)
ExtraLight
Common
val W300 = FontWeight(300)
Light
Common
val W400 = FontWeight(400)
Normal
/ regular / plain
Common
val W500 = FontWeight(500)
Medium
Common
val W600 = FontWeight(600)
SemiBold
Common
val W700 = FontWeight(700)
Bold
Common
val W800 = FontWeight(800)
ExtraBold
Common
val W900 = FontWeight(900)
Black
Common
val Thin = W100
Alias for W100
Common
val ExtraLight = W200
Alias for W200
Common
val Light = W300
Alias for W300
Common
val Normal = W400
The default font weight - alias for W400
Common
val Medium = W500
Alias for W500
Common
val SemiBold = W600
Alias for W600
Common
val Bold = W700
A commonly used font weight that is heavier than normal - alias for W700
Common
val ExtraBold = W800
Alias for W800
Common
val Black = W900
Alias for W900