MoathOthman / MOLH

Localization helper for iOS apps mainly focusing on the LTR/RTL issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Font Isuus

Ali-Alhasani opened this issue · comments

Hi

I would like to ask about MOLHFontLocalizableViews, how the library deals with two font localization.
is it possible to change the font type as the language of the app change from Arabic to English, keeping the same labels,textFiled..etc text size?

thanks in advance

for now, you need to subclass certain classes that found in MOLHFontLocalizableViews, e.g. all labels should subclass from MOLHFontLocalizableLabel,
and on the start of the app set MOLHFont.shared.arabic to the family name ,
but for the current approach you don't get to use more than one arabic font variation(I never needed to though).

what do you mean by MOLHFont.shared.arabic to the family name?

thanks for the information, I have tried in the Demo code but I saw that it only work if the programmatically localized Label String, but not working with the interface localized Label, do you have information about implementing the different font for localized interface labels?

kindly see the edited Demo

MOLH-master-9.zip

I moved updateFont() function to awakeFromNib() instead of did set text, and it work! thanks for the library :)

@AliHassany
great to hear that , can you create a PR with your solution.