epiCode Active Member Licensed User Aug 20, 2022 #1 Question: Is it possible to have the application use a specific custom font in place of system default for a specific language without changing typeface properties of various controls ? Scenario: My app receives text from user which can be in different languages depending upon what the user has entered. It is displayed in a label later and android system automatically select an appropriate font for the language like Hebrew/Hindi/English/Arabic. Need: I wish to change font of certain language like Hindi to a custom font lets say HindiNewRegular.otf Problem: Changing label.typeface changes it to the desired custom font but when input language is different it renders incorrectly.
Question: Is it possible to have the application use a specific custom font in place of system default for a specific language without changing typeface properties of various controls ? Scenario: My app receives text from user which can be in different languages depending upon what the user has entered. It is displayed in a label later and android system automatically select an appropriate font for the language like Hebrew/Hindi/English/Arabic. Need: I wish to change font of certain language like Hindi to a custom font lets say HindiNewRegular.otf Problem: Changing label.typeface changes it to the desired custom font but when input language is different it renders incorrectly.
Erel B4X founder Staff member Licensed User Longtime User Aug 21, 2022 #2 No. You will need to detect the language and "manually" change the typeface. Upvote 0