Allow configuration of default fonts used in TextView#1221
Allow configuration of default fonts used in TextView#1221SergioEstevao merged 10 commits intodevelopfrom
Conversation
Instead of having random places where we obtain/configure fonts, this commits creates a central class where fonts can be retrieved.
etoledom
left a comment
There was a problem hiding this comment.
Thank you @SergioEstevao for this Improvement!
I tested as described and it works well.
But I noticed that the font changes in all the content that doesn't have any styling. Bold, Italic, heading, etc keeps its current font.
I did a test with a more obvious font:
This is Zapfino font. But it doesn't have Bold or Italic variant.
Also tested with Optima font that does have Bold and Italic variant and the result was the same.
One more thing: When I tested with Zapfino I got a crash here:
It was quick fix by replacing the force unwrap with an if-let. But does it make sense that the will be nil given that font and traits are not nil? 😬
|
@etoledom code updated ready for another look. |
etoledom
left a comment
There was a problem hiding this comment.
Thank you for the update @SergioEstevao !
It's working great now 🎉
I left a code comment to think about, but everything looks great, so ✅

This PR brings to TextView the following:
To test: