update legacy font

This commit is contained in:
Xinlei(Ryan) Pan 2020-04-27 13:00:42 -04:00
parent d03c20f1ee
commit 6fec6b53f2

View File

@ -84,15 +84,19 @@ NSString * const DS55Rg = @"NHaasGroteskDSStd-55Rg";
+ (nonnull UIFont *)mfFont75Bd:(CGFloat)size { + (nonnull UIFont *)mfFont75Bd:(CGFloat)size {
[self loadMVMFonts]; if (size >= 15) {
UIFont *font = [UIFont fontWithName:DS75Bd size:size]; return [MFFonts mfFontDSBold:size];
return font ?: [UIFont boldSystemFontOfSize:size]; } else {
return [MFFonts mfFontTXBold:size];
}
} }
+ (nonnull UIFont *)mfFont55Rg:(CGFloat)size { + (nonnull UIFont *)mfFont55Rg:(CGFloat)size {
[self loadMVMFonts]; if (size >= 15) {
UIFont *font = [UIFont fontWithName:DS55Rg size:size]; return [MFFonts mfFontDSRegular:size];
return font ?: [UIFont systemFontOfSize:size]; } else {
return [MFFonts mfFontTXRegular:size];
}
} }
+ (nullable UIFont *)mfFontOcratxt:(CGFloat)size { + (nullable UIFont *)mfFontOcratxt:(CGFloat)size {