wordpress-mobile / WordPress-iOS-Shared

Shared components used in building the WordPress iOS apps and other library components
GNU General Public License v2.0
18 stars 22 forks source link

Load system serif or Noto font at default size for style #275

Closed frosty closed 3 years ago

frosty commented 4 years ago

This PR adds the ability to load a serif font (system-provided on iOS 13+, or Noto on older versions) at the default size for the specified font style. For example, the default size for the headline style is 17pt. This is to be used for navigation bar fonts, where we don't want the size to change based on the user's current dynamic type setting.

You can test using the associated WPiOS PR here.

mindgraffiti commented 4 years ago

Don't forget to bump the pod version in the .podspec file!

frosty commented 4 years ago

Thanks both!