How can I use font Inter style in Jetpack compose:
Text(
text = "",
style = TextStyle(
fontSize = 14.sp,
lineHeight = 20.sp,
fontFamily = FontFamily.Default,
fontWeight = FontWeight(500),
fontStyle = FontStyle.Inter, ///////Inter
textAlign = TextAlign.Center,
letterSpacing = 0.1.sp)
)
You need to create custom FontFamily for that which will override the default system FontFamily.
Place your fonts inside the 'res/font' folder, and then you can use them as shown below.