Start native apps faster with the Composables CLI ->
Class

Typography

The Jetpack Compose Glimmer type scale includes a range of contrasting styles that support the needs of your product and its content.

Source set: Android
public class Typography private constructor(
    public val titleLarge: TextStyle,
    public val titleMedium: TextStyle,
    public val titleSmall: TextStyle,
    public val bodyLarge: TextStyle,
    public val bodyMedium: TextStyle,
    public val bodySmall: TextStyle,
    public val caption: TextStyle,
)

The Jetpack Compose Glimmer type scale includes a range of contrasting styles that support the needs of your product and its content.

It is recommended to use createGoogleSansFlexTypography() from androidx.xr.glimmer:glimmer-google-fonts to create your Typography instance.

Functions

copy

Source set: Android
public fun copy(
        titleLarge: TextStyle = this.titleLarge,
        titleMedium: TextStyle = this.titleMedium,
        titleSmall: TextStyle = this.titleSmall,
        bodyLarge: TextStyle = this.bodyLarge,
        bodyMedium: TextStyle = this.bodyMedium,
        bodySmall: TextStyle = this.bodySmall,
        caption: TextStyle = this.caption,
    ): Typography

Returns a copy of this Typography, optionally overriding some of the values.

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

toString

Source set: Android
override fun toString(): String