I need help in implementing fallback fonts for lan...
# compose-web
h
I need help in implementing fallback fonts for languages which use unicode characters. I have tried following the example here: https://github.com/JetBrains/compose-multiplatform-core/pull/1400 I am on compose 1.7.0 I am not seeing a FontFamily function which is not composable (usable in a LaunchedEffect) and takes in bytes as an argument. I am also not seeing the resources() function. Did something change or am I missing something?
o
it's available in 1.7.0. Here is an example we have right in the release branch https://github.com/JetBrains/compose-multiplatform-core/blob/release/1.7/compose/mpp/demo/src/wasmJsMain/kotlin/androidx/compose/mpp/demo/main.js.kt#L51 _ > a FontFamily function which is not composable Where do you see a Composable fun FontFamily? I see only non-composable one: https://github.com/JetBrains/compose-multiplatform-core/blob/release/1.7/compose/u[…]c/commonMain/kotlin/androidx/compose/ui/text/font/FontFamily.kt
h
Thanks @Oleksandr Karpovich [JB] I think I see my problem.. I was trying to do it in my commonMain module instead of jsMain 🤦 I will try it tomorrow. Thanks for the help
👍 1