Hi Devs I want to implement custom font in the KMM...
# getting-started
m
Hi Devs I want to implement custom font in the KMM project(UI in the jetpack compose), I placed my font files in the commonMain->composeResouces->font And when I'm trying to access the font via Res.font.<name> I got error in the logcat: java.lang.IllegalStateException: Could not load font I'm attaching the screen shots for the reference. Any help will be highly appreciated. Slack Conversation
j
This happened to me - I remember having to do a clean build and it started working again
m
Can I put the fonts in composeApp->CommonMain and access for both Ios and Android? @Juan Carlos
j
You have to put it in
commonMain>composeResources
But yes, once you put it in there, your Compose Multiplatform code should be able to access it without issues (after a clean build in my case) on both platforms
👀 1
m
And do we have a form library which can handle large forms?
@Juan Carlos?
j
Hmm sort of, you get the building blocks from Material but you have to wire the form up yourself AFAIK (like showing the input fields, radio buttons, checklists or whatever and then manage the data/state yourself)
m
Thank you very much @Juan Carlos .It will help a lot
🙌 1