Colton Idle
02/22/2021, 11:23 PMprivate val Lato = FontFamily(
Font(R.font.lato_regular, FontWeight.Normal),
Font(R.font.lato_bold, FontWeight.Bold),
)
object MyTypeSystem {
val head = TextStyle(
fontFamily = Lato,
fontSize = 18.sp,
fontWeight = FontWeight.Normal
)
val body = TextStyle(
fontFamily = Lato,
fontSize = 12.sp,
fontWeight = FontWeight.Bold
)
...
}
justasm
02/23/2021, 7:28 AMShakil Karim
02/23/2021, 10:11 AM@Composable
fun facrNormal16BodyText() =
MaterialTheme.typography.body1.merge(
TextStyle(
fontWeight = FontWeight.Normal,
textAlign = TextAlign.Center,
fontSize = 16.sp,
fontFamily = JOST
)
)
Bryan Herbst
02/23/2021, 2:12 PM