FontWeight
Kotlin
|Java
@Immutable data class FontWeight : Comparable<FontWeight>
kotlin.Any | |
↳ | androidx.compose.ui.text.font.FontWeight |
The thickness of the glyphs, in a range of 1,1000.
Summary
Public constructors | |
---|---|
The thickness of the glyphs, in a range of 1,1000. |
Public methods | |
---|---|
Int |
compareTo(other: FontWeight) |
Inherited extension functions | ||
---|---|---|
From androidx.core.util
|
Properties | |
---|---|
Int |
Font weight value in the range of 1,1000 |
Companion properties | |
---|---|
FontWeight |
Alias for W900 |
FontWeight |
A commonly used font weight that is heavier than normal - alias for W700 |
FontWeight |
Alias for W800 |
FontWeight |
Alias for W200 |
FontWeight |
Alias for W300 |
FontWeight |
Alias for W500 |
FontWeight |
The default font weight - alias for W400 |
FontWeight |
Alias for W600 |
FontWeight |
Alias for W100 |
FontWeight | |
FontWeight | |
FontWeight | |
FontWeight |
Normal / regular / plain |
FontWeight | |
FontWeight | |
FontWeight | |
FontWeight | |
FontWeight |
Public constructors
<init>
FontWeight(weight: Int)
The thickness of the glyphs, in a range of 1,1000.
Parameters | |
---|---|
weight: Int | Font weight value in the range of 1,1000 |
See Also
Public methods
compareTo
fun compareTo(other: FontWeight): Int
Properties
Companion properties
Bold
@Stable val Bold: FontWeight
A commonly used font weight that is heavier than normal - alias for W700