moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Nested generated ttf font object

Open JahonovAsilbek opened this issue 1 year ago • 3 comments

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)

JahonovAsilbek avatar Jan 19 '24 13:01 JahonovAsilbek

what version you use and what name of font file you use?

Alex009 avatar Jan 21 '24 14:01 Alex009

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:

image

JahonovAsilbek avatar Jan 22 '24 04:01 JahonovAsilbek

Please check fonts block in readme

Alex009 avatar Jan 22 '24 07:01 Alex009