moko-resources
moko-resources copied to clipboard
Nested generated ttf font object
I put ttf fonts in resource folder. When I build, it generating separate objects for each font
public object fonts : ResourceContainer<FontResource> {
public object regular {
public val regular: FontResource
}
}
And I had to call it fontFamily = fontFamilyResource(fontResource = MR.fonts.regular.regular)
what version you use and what name of font file you use?
what version you use and what name of font file you use? @Alex009
I am using "0.23.0" version and this is my fonts:
Please check fonts block in readme