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

Ready-made values and functions that return it

Used by

Parameters that take a 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.