https://kotlinlang.org logo
Title
m

Marko Novakovic

04/04/2023, 6:38 PM
how to make the equivalent of this:
val MonumentExtended = FontFamily(
    Font(R.font.monument_extended_black, FontWeight.Black),
    Font(R.font.monument_extended_regular, FontWeight.Normal),
    Font(R.font.monument_extended_light, FontWeight.Light),
)
with moko-resources? and have this:
large = TextStyle(
    fontFamily = MonumentExtended,
    fontWeight = FontWeight.Black,
    fontSize = 24.sp,
    letterSpacing = 0.sp,
),
mediumBold = TextStyle(
    fontFamily = MonumentExtended,
    fontWeight = FontWeight.Bold,
    fontSize = 16.sp,
    letterSpacing = 0.sp,
),
mediumLight = TextStyle(
    fontFamily = MonumentExtended,
    fontWeight = FontWeight.Light,
    fontSize = 16.sp,
    letterSpacing = 0.sp,
),
small = TextStyle(
    fontFamily = MonumentExtended,
    fontWeight = FontWeight.Light,
    fontSize = 10.sp,
    letterSpacing = 0.sp,
),