Merge branch 'feature/fiveg_font' into 'develop'

add new font method for 5g

See merge request BPHV_MIPS/mvm_core_ui!67
This commit is contained in:
Pan, Xinlei (Ryan) 2019-05-13 16:07:54 -04:00
commit f632d69b4c
2 changed files with 12 additions and 0 deletions

View File

@ -157,6 +157,9 @@ B3 -> Legal
//75Bd 10pt only for support
+ (nullable UIFont *)fontForUnreadMessageOnSupport;
//55Rg 16pt for 5G flow
+ (nullable UIFont *)font5GMessage:(BOOL)genericScaling;
// Returns the fonts for these styles allowing to apply a generic scale by device or not.
+ (nullable UIFont *)fontForBiggerHeadLine:(BOOL)genericScaling;
+ (nullable UIFont *)fontForPlan:(BOOL)genericScaling;

View File

@ -347,6 +347,15 @@ CGFloat const LabelWithInternalButtonLineSpace = 2;
return [MFFonts mfFont75Bd:size];
}
+ (nullable UIFont *)font5GMessage:(BOOL)genericScaling {
CGFloat size = 16;
if (genericScaling) {
size = [self sizeFontGenericForCurrentDevice:size];
}
return [MFFonts mfFont55Rg:size];
}
+ (nullable UIFont *)fontForHeadlineAlternative:(BOOL)genericScaling {
CGFloat size = 24;
if (genericScaling) {