Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested generated ttf font object #630

Closed
JahonovAsilbek opened this issue Jan 19, 2024 · 3 comments
Closed

Nested generated ttf font object #630

JahonovAsilbek opened this issue Jan 19, 2024 · 3 comments

Comments

@JahonovAsilbek
Copy link

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 JahonovAsilbek changed the title Duplicate generated ttf font object Nested generated ttf font object Jan 19, 2024
@Alex009
Copy link
Member

Alex009 commented Jan 21, 2024

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

@JahonovAsilbek
Copy link
Author

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

@Alex009
Copy link
Member

Alex009 commented Jan 22, 2024

Please check fonts block in readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants