How are folks loading custom fonts in WASM, when I...
# compose-web
s
How are folks loading custom fonts in WASM, when I try to load a .ttf from the
commonMain/composeResources/font
folder it will try to load it but when it actually displays text its just the unknown character box, I am able to load drawables from
commonMain/composeResources/drawable
🤷‍♂️
1
Im just using the call
Copy code
val font = Font(Res.font.ArchivoBlack_Regular)
from org.jetbrains.compose.resources to load it
Here are some better examples
And how I'm loading the font into the Theme
Never mind, I think I got it working following this example https://kotlinlang.slack.com/archives/C01F2HV7868/p1704643141682609