Hello, I'm trying to load TTF for compose multi-pl...
# multiplatform
e
Hello, I'm trying to load TTF for compose multi-platform (desktop), I checked this doc: • added
org.jetbrains.compose.components:components-resourcesadded
to
commonMain
, • added the font files in
commonMain/composeResources/font
but I can't resolve the
Res
class from my code in
desktopMain
. I'm using compose 1.9.0, the module has
org.jetbrains.kotlin.plugin.compose
and
org.jetbrains.kotlin.multiplatform
applied. Anything I missed?
Maybe because it's a library, not a compose app? Then how to use TTF in a compose desktop library?