TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Michael Kral.
This category is meant to help with using the Dynamic Text sizes introduced in iOS7. You can use your own font and scale the size of the font.
#import "UIFont+DynamicFontControl.h"
UIFont * dynamicFont = [UIFont preferredFontForTextStyle:UIFontTextStyleBody withFontName:@"AmericanTypewriter"];
UIFont * scaledDynamicFont = [UIFont preferredFontForTextStyle:UIFontTextStyleBody withFontName:@"AmericanTypewriter" scale:2.0f];
Right now the only attribute affected is the font size.For example I am not adding a BOLD attribute for UIFontTextStyleHeadline.
I plan to update this category to use CoreText to fix this in the near future.