androidx.compose.ui.text.font
FontStyle
Value class · from org.jetbrains.compose.ui:ui-text:1.12.2
No hand-written docs yet.
Defines whether the font is Italic or Normal.
value class FontStyle(
value: Int,
)
How to get one
Create it
FontStyle(value)constructor
Ready-made values and functions that return it
Used by
Parameters that take a FontStyle.
Text(fontStyle)TextStyle.copy(fontStyle)TextStyle.merge(fontStyle)
Properties
Normal
val Normal: FontStyle
Use the upright glyphs
Italic
val Italic: FontStyle
Use glyphs designed for slanting
value
val value: Int
Functions
values
fun values(): List<FontStyle>
Returns a list of possible values of FontStyle.
Library docs
Defines whether the font is Italic or Normal.