Dovydas
02/15/2025, 5:21 PMRes.getUri
does not say that the file doesn't exist, but file.exists()
prints false.
val file = File(Res.getUri("font/RobotoFlex-Variable.ttf"))
println(file.exists())
return FontFamily(
Font(
File(Res.getUri("font/RobotoFlex-Variable.ttf")),
variationSettings = FontVariation.Settings(
FontVariation.width(width),
FontVariation.weight(weight)
)
)
)
The file prints this path: file:/android_asset/composeResources/esmvertretungsplan.composeapp.generated.resources/font/RobotoFlex-Variable.ttf
Dovydas
02/15/2025, 5:54 PMFile
object from a file that is an app resource and not on the actual system. What are my options then?Abdulkadir Aminu
02/19/2025, 3:10 PMDovydas
02/20/2025, 7:36 AM