From 315ea87c10d71e30647b52a2edf7dc90c0c6b56c Mon Sep 17 00:00:00 2001 From: "Chowdhury, Shohrab" Date: Mon, 13 May 2019 15:51:21 -0400 Subject: [PATCH] add new font method for 5g --- MVMCoreUI/Styles/MFStyler.h | 3 +++ MVMCoreUI/Styles/MFStyler.m | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/MVMCoreUI/Styles/MFStyler.h b/MVMCoreUI/Styles/MFStyler.h index 49f02db0..ddafe4c9 100644 --- a/MVMCoreUI/Styles/MFStyler.h +++ b/MVMCoreUI/Styles/MFStyler.h @@ -157,6 +157,9 @@ B3 -> Legal //75Bd 10pt only for support + (nullable UIFont *)fontForUnreadMessageOnSupport; +//55Rg 16pt ++(nullable UIFont *)fontFiveGMessage:(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; diff --git a/MVMCoreUI/Styles/MFStyler.m b/MVMCoreUI/Styles/MFStyler.m index ca0fcd2e..45a881a0 100644 --- a/MVMCoreUI/Styles/MFStyler.m +++ b/MVMCoreUI/Styles/MFStyler.m @@ -347,6 +347,15 @@ CGFloat const LabelWithInternalButtonLineSpace = 2; return [MFFonts mfFont75Bd:size]; } ++(nullable UIFont *)fontFiveGMessage:(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) {