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

Use System Font #61

Open
ivancantarino opened this issue May 5, 2020 · 2 comments
Open

Use System Font #61

ivancantarino opened this issue May 5, 2020 · 2 comments

Comments

@ivancantarino
Copy link

Hi there,

Before it all, thanks for sharing this project. It's pretty cool.
I was digging around the themes, and will probably create a custom one myself, though I noticed the fonts used are the ones that are listem in the system.

Is there a way to use the system font, such as UIFont.systemFont(ofSize: CGFloat, weight: UIFont.Weight) ?

@ivancantarino
Copy link
Author

I have managed to do it within the Theme.swift file inside the parse function, where I just overwrite the font property, before the return to whatever font I desire.

Is there a better way?

@ruddfawcett
Copy link
Owner

Hey, @Ivan-Cantarino, thanks for the note — appreciate it! So yes — there should be a way to use UIFont.systemFont(...), and I was going to suggest the solution you came up with for now. I think, eventually (and I'll have to dig back into the project at some point), there should be more defined defaults/a base Theme that others inherit from; hopefully, this will remove the need to explicitly overwrite options such as system default typefaces in the future.

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

No branches or pull requests

2 participants