FontWeight
Kotlin
|Java
@Immutable data class FontWeight : Comparable<FontWeight>
kotlin.Any | |
↳ | androidx.ui.text.font.FontWeight |
The thickness of the glyphs, in a range of 1,1000.
Summary
Public methods |
|
---|---|
Int |
compareTo(other: FontWeight) |
String |
toString() |
Companion properties |
|
---|---|
FontWeight |
A commonly used font weight that is heavier than normal. |
FontWeight |
The default font weight. |
FontWeight |
Thin, the minimum thickness |
FontWeight |
Extra-light |
FontWeight |
Light |
FontWeight |
Normal / regular / plain |
FontWeight |
Medium |
FontWeight |
Semi-bold |
FontWeight |
Bold |
FontWeight |
Extra-bold |
FontWeight |
Black, maximum thickness |
Public methods
compareTo
fun compareTo(other: FontWeight): Int
toString
fun toString(): String