dynamic type

This commit is contained in:
Pfeil, Scott Robert 2019-10-22 11:40:50 -04:00
parent b3b193e63d
commit 252beb311a
2 changed files with 7 additions and 3 deletions

View File

@ -80,7 +80,7 @@ public typealias ActionBlock = () -> ()
//------------------------------------------------------
@objc public func setupView() {
adjustsFontForContentSizeCategory = true
backgroundColor = .clear
numberOfLines = 0
lineBreakMode = .byWordWrapping

View File

@ -41,12 +41,16 @@
+ (nullable UIFont *)mfFont75Bd:(CGFloat)size {
[self loadMVMFonts];
return [UIFont fontWithName:@"NHaasGroteskDSStd-75Bd" size:size];
UIFont *font = [UIFont fontWithName:@"NHaasGroteskDSStd-75Bd" size:size];
UIFontMetrics *metrics = [UIFontMetrics metricsForTextStyle:UIFontTextStyleHeadline];
return [metrics scaledFontForFont:font];
}
+ (nullable UIFont *)mfFont55Rg:(CGFloat)size {
[self loadMVMFonts];
return [UIFont fontWithName:@"NHaasGroteskDSStd-55Rg" size:size];
UIFont *font = [UIFont fontWithName:@"NHaasGroteskDSStd-55Rg" size:size];;
UIFontMetrics *metrics = [UIFontMetrics metricsForTextStyle:UIFontTextStyleBody];
return [metrics scaledFontForFont:font];
}
+ (nullable UIFont *)mfFontOcratxt:(CGFloat)size {