Kapil Yadav
05/28/2024, 5:42 AMKapil Yadav
05/28/2024, 5:42 AMKapil Yadav
05/28/2024, 5:43 AMcomposeVersion = "1.6.1"
kotlin = "1.9.22"
composePlugin = "1.6.0"
composeRuntime = "1.6.1"
Kapil Yadav
05/28/2024, 5:43 AMKapil Yadav
05/28/2024, 5:43 AMVivek Choudhary
05/28/2024, 6:29 AMKapil Yadav
05/28/2024, 7:04 AMKapil Yadav
05/28/2024, 7:05 AMKapil Yadav
05/28/2024, 7:05 AMVivek Choudhary
05/28/2024, 7:53 AMText(
text = photo.user.name,
maxLines = 2,
fontSize = 12.sp,
fontFamily = FontFamily(Font(Res.font.Roboto_Black)),
modifier = Modifier.weight(1f, fill = false).clickable {
onProfileImageClick(photo.user.links.profileLink)
}
)
Works for me. Could you try rebuilding the project?Vivek Choudhary
05/28/2024, 8:05 AMKapil Yadav
05/28/2024, 8:06 AMVivek Choudhary
05/28/2024, 8:07 AMyoussef hachicha
05/28/2024, 9:04 AMKapil Yadav
05/28/2024, 9:20 AMKapil Yadav
05/28/2024, 9:34 AMyoussef hachicha
05/28/2024, 10:32 AMyoussef hachicha
05/28/2024, 10:33 AMinternal val CairoFontFamily: FontFamily
@Composable
get() =
FontFamily(
Font(
resource = Res.font.cairo_bold,
weight = FontWeight.Bold,
),
Font(
Res.font.cairo_extra_bold,
weight = FontWeight.ExtraBold,
),
Font(
Res.font.cairo_light,
weight = FontWeight.Light,
),
Font(
Res.font.cairo_medium,
weight = FontWeight.Medium,
),
Font(
Res.font.cairo_extra_light,
weight = FontWeight.ExtraLight,
),
Font(
Res.font.cairo_regular,
weight = FontWeight.Normal,
),
Font(
Res.font.cairo_semi_bold,
weight = FontWeight.SemiBold,
),
)
try only with one font and comment out the rest sometimes you may miss to add a certain one, this happened to me before and even tho the font did exist in the font folder but for some reason it didn't loadKapil Yadav
05/28/2024, 11:42 AM