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

MTFontManager manager is nil #7

Closed
petersktang opened this issue Sep 11, 2023 · 2 comments
Closed

MTFontManager manager is nil #7

petersktang opened this issue Sep 11, 2023 · 2 comments

Comments

@petersktang
Copy link
Contributor

manager is accessible to external apps, fontManager is inaccessible, the below fixes manager nil issue.

public class MTFontManager {
static public private(set) var manager: MTFontManager = {
    MTFontManager()
}()

let kDefaultFontSize = CGFloat(20)

static var fontManager : MTFontManager {
    return manager
}
@petersktang
Copy link
Contributor Author

Included the above in pull request

@mgriebling
Copy link
Owner

Pull merged.

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