Class

FontStyle

Describes the style of the font: Normal] or Italic.

Source set: Android
public class FontStyle private constructor(@get:RestrictTo(LIBRARY_GROUP) public val style: Int)

Describes the style of the font: Normal] or Italic.

Functions

toString

Source set: Android
override fun toString(): String

Members

Companion

Source set: Android
public companion object

Properties

Normal

Source set: Android
public val Normal: FontStyle = FontStyle(0)

Use the upright glyphs

Italic

Source set: Android
public val Italic: FontStyle = FontStyle(1)

Use glyphs designed for slanting

Functions

values

Source set: Android
public fun values(): List<FontStyle>

Returns a list of possible values of FontStyle.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: