How can I return a custom UIFont from preferredFontForTextStyle
for each Text style?
e.g I want to use ArialHebrew-Bold font for UIFontTextStyleHeadline
and use ArialHebrew for UIFontTextStyleBody
If you just like dynamic font-size with your own font you can do this
UIFontDescriptor *userFont = [UIFontDescriptor preferredFontDescriptorWithTextStyle:UIFontTextStyleBody]; float userFontSize = [userFont pointSize]; UIFont *font = [UIFont fontWithName:@"ArialHebrew-Bold" size:userFontSize];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With