And does anyone know why this font looks different...
# compose
a
And does anyone know why this font looks different in android and iOS?
Copy code
@Composable
private fun InterFont() = FontFamily(
    Font(resource = Res.font.montserrat, weight = FontWeight.Normal),
    Font(resource = Res.font.montserrat, weight = FontWeight.Medium)
)

private val typography = Typography()

@Composable
internal fun medAppTypography() = Typography(
    displayLarge = typography.displayLarge.copy(fontFamily = InterFont()),
    displayMedium = typography.displayMedium.copy(fontFamily = InterFont()),
    displaySmall = typography.displaySmall.copy(fontFamily = InterFont()),
    headlineLarge = typography.headlineLarge.copy(fontFamily = InterFont()),
    headlineMedium = typography.headlineMedium.copy(fontFamily = InterFont()),
    headlineSmall = typography.headlineSmall.copy(fontFamily = InterFont()),
    titleLarge = typography.titleLarge.copy(fontFamily = InterFont()),
    titleMedium = typography.titleMedium.copy(fontFamily = InterFont()),
    titleSmall = typography.titleSmall.copy(fontFamily = InterFont()),
    bodyLarge = typography.bodyLarge.copy(fontFamily = InterFont()),
    bodyMedium = typography.bodyMedium.copy(fontFamily = InterFont()),
    bodySmall = typography.bodySmall.copy(fontFamily = InterFont()),
    labelLarge = typography.labelLarge.copy(fontFamily = InterFont()),
    labelMedium = typography.labelMedium.copy(fontFamily = InterFont()),
    labelSmall = typography.labelSmall.copy(fontFamily = InterFont()),
)
I have this typography feeding into my cmp app
this is android and it looks ok
in iOS however it looks like this
IMG_1405.png
z
Are you asking why the language is different or just the font? Re the font, idk but it looks like a super thin variant is being used on iOS - maybe it’s choosing the wrong default weight? You could file a bug on the jetbrains tracker.
a
The font
It is a variable font so i suspect that
z
Are you able to select the correct weight or grade using font variation settings? On android variable fonts are only supported in local fonts and on O+, so there might also be limitations on iOS if they’ve been implemented there at all.
a
I downloaded a non variable version and it seems to render fine
Will use that
Thanks for the input
z
I know iOS itself has support for variable fonts, you might want to file a feature request for compose iOS if it doesn’t already exist
k