Colton Idle
08/14/2025, 10:17 PM@Composable
fun Foo(){
val myFont = FontFamily(Font(`R.font.myfont`))
...
}
bad? Should be wrapped in a remember?Sergey Y.
08/14/2025, 10:55 PMColton Idle
08/14/2025, 10:57 PMSergey Y.
08/14/2025, 10:58 PMColton Idle
08/14/2025, 11:00 PMSergey Y.
08/14/2025, 11:10 PMColton Idle
08/15/2025, 1:18 AMColton Idle
08/15/2025, 1:18 AMAlex Styl
08/15/2025, 10:38 AMInteresting. I thought I had to be in a @composeable to use those!you might be confusing it with compose resources. they do in fact load fonts async and need to be called from a composable (i think the composables is called Font())
Sergey Y.
08/15/2025, 10:51 AM