In Jetpack Compose for android you can do this:
val fontFamily = FontFamily(
Font(
resId = R.font.my_font_400_regular,
weight = FontWeight.W400,
style = FontStyle.Normal
),
Font(
resId = R.font.my_font_400_italic,
weight = FontWeight.W400,
style = FontStyle.Italic
)
)
But for Desktop the Filestructure is different and I have no Access to R.font.my_font_400_regular
since 'R' is a Android Resource feature.