You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Trying to use a custom font resource added in a second module on Windows with Paparazzi version 1.3.5 leads to following error:
java.lang.IllegalStateException: Could not load font
at androidx.compose.ui.text.font.TypefaceRequestCache.runCached(FontFamilyResolver.kt:207)
at androidx.compose.ui.text.font.FontFamilyResolverImpl.resolve(FontFamilyResolver.kt:92)
....
Caused by: java.lang.IllegalStateException: Unable to load font ResourceFont(resId=2131296256, weight=FontWeight(weight=400), style=Normal, loadingStrategy=Blocking)
at androidx.compose.ui.text.font.FontListFontFamilyTypefaceAdapterKt.firstImmediatelyAvailable(FontListFontFamilyTypefaceAdapter.kt:193)
at androidx.compose.ui.text.font.FontListFontFamilyTypefaceAdapterKt.access$firstImmediatelyAvailable(FontListFontFamilyTypefaceAdapter.kt:1)
...
Caused by: android.content.res.Resources$NotFoundException: Font resource ID #0x7f090000 could not be retrieved.
at app//androidx.core.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:572)
at app//androidx.core.content.res.ResourcesCompat.getFont(ResourcesCompat.java:413)
...
The error only appears on Windows. With Linux it works.
It also worked with version 1.3.3 and 1.3.4 on Windows
Steps to Reproduce
On you Windows Machine:
Create a new Android project with Paparazzi 1.3.5
Add a second module with a custom Font with Typography file where font is used
Import he second module in your first module and use the typography
geoff-powell
changed the title
Could not load font in multi module project on Windows (since 1.3.5)
Could not load font in multi module project on Windows [custom font from server]
Nov 21, 2024
Thanks @geoff-powell for the fast response and taking care.
Sorry I've accidentally added the server font. If you add an locally provided font you'll get this errors as well.
For me it only occurred on Windows and 1.3.5 (with the locally provided font).
Do you need another example with a local provided font?
Description
Trying to use a custom font resource added in a second module on Windows with Paparazzi version 1.3.5 leads to following error:
The error only appears on Windows. With Linux it works.
It also worked with version 1.3.3 and 1.3.4 on Windows
Steps to Reproduce
On you Windows Machine:
Minimal Example:
MinimalExample.zip
Expected behavior
I don't get an error when using a custom font.
Additional information:
Thanks & Best Regards
Tim
The text was updated successfully, but these errors were encountered: