作者:主宰魔尊_164 | 来源:互联网 | 2023-09-02 10:03
Inmyapplicationihavedefinethefontfamiliesinprefix.pchfile.AllofthemareEnglishfonts.
In my application i have define the font families in prefix.pch file. All of them are English fonts. Now i have localized the app to support Other language. So, my question is how can i define the fonts based on the selected language (phone language)
在我的应用程序中,我已经在prefix.pch文件中定义了字体系列。所有这些都是英文字体。现在我已经将应用程序本地化以支持其他语言。所以,我的问题是我如何根据所选语言(手机语言)定义字体
#define FONT_H1 [UIFont fontWithName:@"Roboto-Medium" size:18.0]
#define FONT_H2 [UIFont fontWithName:@"Roboto-Light" size:16.0]
#define FONT_H3 [UIFont fontWithName:@"Oswald" size:14.0f]
#define FONT_H4 [UIFont fontWithName:@"Roboto-Light" size:14.0]
1 个解决方案