Typography

data class Typography
kotlin.Any
   ↳ androidx.ui.material.Typography

Data class holding typography definitions as defined by the Material typography specification.

Summary

Public constructors

<init>(h1: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W100, fontSize = 96.sp), h2: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W100, fontSize = 60.sp), h3: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 48.sp), h4: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 34.sp), h5: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 24.sp), h6: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W500, fontSize = 20.sp), subtitle1: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 16.sp), subtitle2: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W500, fontSize = 14.sp), body1: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 16.sp), body2: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 14.sp), button: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W500, fontSize = 14.sp), caption: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 12.sp), overline: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 10.sp))

Data class holding typography definitions as defined by the Material typography specification.

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.

Properties

TextStyle

TextStyle

TextStyle

TextStyle

TextStyle

TextStyle

TextStyle

TextStyle

TextStyle

TextStyle

TextStyle

TextStyle

TextStyle

Public constructors

<init>

Typography(
    h1: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W100, fontSize = 96.sp),
    h2: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W100, fontSize = 60.sp),
    h3: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 48.sp),
    h4: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 34.sp),
    h5: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 24.sp),
    h6: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W500, fontSize = 20.sp),
    subtitle1: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 16.sp),
    subtitle2: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W500, fontSize = 14.sp),
    body1: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 16.sp),
    body2: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 14.sp),
    button: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.W500, fontSize = 14.sp),
    caption: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 12.sp),
    overline: TextStyle = TextStyle( fontFamily = FontFamily("Roboto"), fontWeight = FontWeight.Normal, fontSize = 10.sp))

Data class holding typography definitions as defined by the Material typography specification.

Properties

body1

val body1: TextStyle

body2

val body2: TextStyle

button

val button: TextStyle

caption

val caption: TextStyle

h1

val h1: TextStyle

h2

val h2: TextStyle

h3

val h3: TextStyle

h4

val h4: TextStyle

h5

val h5: TextStyle

h6

val h6: TextStyle

overline

val overline: TextStyle

subtitle1

val subtitle1: TextStyle

subtitle2

val subtitle2: TextStyle