AtomikTypography

data class AtomikTypography(    val weight: AtomikTypographyWeight = AtomikTypographyWeight.NORMAL,     val size: Int,     val fontName: String? = null)

A common implementation of a Typography, that contains data for describing a font.

Constructors

Link copied to clipboard
fun AtomikTypography(    weight: AtomikTypographyWeight = AtomikTypographyWeight.NORMAL,     size: Int,     fontName: String? = null)

Properties

Link copied to clipboard
val fontName: String? = null

the name of the font used, if not specified it will use the default font

Link copied to clipboard
val size: Int

the size of the text (in dp or pt)

Link copied to clipboard
val weight: AtomikTypographyWeight

the weight of the text (ex. bold, thin, normal, etc)

Extensions

Link copied to clipboard
val AtomikTypography.typeFace: Typeface