The Developer Preview for Android 11 is now available; test it out and share your feedback.

FontStyle

enum class FontStyle
kotlin.Any
   ↳ kotlin.Enum<androidx.ui.text.font.FontStyle>
   ↳ androidx.ui.text.font.FontStyle

Defines whether the font is Italic or Normal.

Summary

Enum values

Use glyphs designed for slanting

Use the upright glyphs

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Enum values

Italic

enum val Italic : FontStyle

Use glyphs designed for slanting

Normal

enum val Normal : FontStyle

Use the upright glyphs