Does text in Jetpack Compose have support for Kern...
# compose
d
Does text in Jetpack Compose have support for Kerning?
c
Is this Android? You can set letterSpacing in the TextStyle in AndroidX Compose UI.
d
Is letter spacing and kerning the exact same concept?
c
You could adjust the spacing of individual characters using AnnotatedString I suppose.
💯 1
f
in your typography theme using
TextStyle
you can control letterSpacing (aka kerning, the spacing between the letters, the higher the number the bigger the gap)
Copy code
val caption: TextStyle = TextStyle(
        fontFamily = roboto,
        fontWeight = FontWeight.Medium,
        fontSize = 12.sp,
        lineHeight = 16.sp,
        letterSpacing = 0.5.sp
    )