Is there a way to use fonts from shared code without any external library?
👍 1
d
darkmoon_uk
06/26/2023, 5:02 AM
Yes, absolutely. Each platform has its own Data Resource + Font loading API's. Then there is
expect
/
actual
. We have this in our own code.
r
Rafs
06/26/2023, 8:47 AM
@darkmoon_uk Does this mean that I'll have to duplicate font resources across source sets? I assume there should be a way to reuse font files on all platforms
d
darkmoon_uk
06/26/2023, 9:08 AM
Each target has is resource folder set represented in Gradle. You can add the same folder to these, in effect a common resource folder.