flutter : english not working with the arabic fonts - flutter

iam using a custom arabic font for my app
but sometimes the data that coming from the server come in english
the problem is that the custom arabic font not changing the english
letter font to the main font like what is happening in android
i used the localization to determine the language of the app but it didnt success
because i think that the app language didnt change
its just the letters
so i think if i could determine the language of the text then choose the font for it
or using a font that supporting arabic or english
but is there any better solution?
thank u

Related

Arabic language typing in tinymce

I am using arabic language in tinymce with help of arabic font all it's working properly but i want to allow user to type arabic language i read so many thread it's just gave me solution for RTL ( right to left) and all toolbar and menubar also working RTL but user can't type arabic language in editor they can only type in english please help. Is there any plugin require for arabic language typing.
Thanks in advance
Language Support and Localization in TinyMCE can mean many different things:
To make the TinyMCE UI a different language, take a look at UI language packs:
https://www.tiny.cloud/docs/configure/localization/#language
https://www.tiny.cloud/get-tiny/language-packages/
To set the directionality (left-to-right/right-to-left), look at the directionality configuration option:
https://www.tiny.cloud/docs/configure/localization/#directionality
However to actually enter Arabic text into the TinyMCE editor, the user's computer would have to be properly configured to generate Arabic text. How to do this obviously varies by operating system, and it is not something within the purview of TinyMCE.

ios internationalization font assign

I'm working on a internationalization app, and the problem is:
If using english environment then I can set font like "Helvetica"
If using Chinese environment then I can set Chinese font.
Is there a way auto switch font depends on which language env is?
For example:
I prepare two fonts: en_font and cn_font, judge iOS language env, if language is english then use en_font otherwise cn_font
Check out:
[UITextInputMode currentInputMode]. primaryLanguage

localization in german language is not working properly,showing english text by default

I have done localization of iPhone project in english,german and french language.French and english are working fine with change of language on iPhone/simulator but german language is not working properly.
I have changed texts in the xib file for each language under the localization.
Whenever i am trying to change language to german(Belgium),XIB file with english text is getting shown on the simulator/iphone.
I have tried changing region first(belgium) and then language(German) but have no luck with it.
Please help me for the same.
Thanks in advance.

Localize text into chinese using custom fonts

I know how to use custom fonts to display CCLabels. I also figured out how to localize the Labels. But I am wondering if there is anyway to display the localized text using custom fonts.
For example when I use Arial I have no problems, the chinese fonts appear correctly. But when I use a font not included in XCode such as ARLRDBD.TTF then the chinese characters do not get displayed.
How can I display the chinese characters in ARLRDBD.TTF too? Or am I stuck with just using the default fonts included in XCode if I plan to use LocalizedString?
Thanks
Abhinav
You should be able to use any font that has Chinese characters in it.
Not all fonts include characters for all languages. Many Western fonts only have the Roman alphabet (A-Z).
You could either use a font that has all the characters you will need (like Arial, or another Unicode font - see: http://en.wikipedia.org/wiki/Unicode_typeface), or have separate fonts for each language.
I'd suggest a different font for each language.
You could keep it organized with a simple struct.
typedef struct {
NSString *regionname;
NSString *fontname;
} RegionFont;
//later in the code....
RegionFont some_region;
some_region.regionname = #"China";
some_region.fontname = #"Arial";
You can test if a font supports a given language by opening Font Book (standard Mac app) and searching under "All Fonts" for the language you want.
I don't have many custom fonts installed and several with Chinese support come up.
Hope this helps.
You can use custom fonts in your app but you need to make the system aware that they exist using the UIAppFonts key in your Info.plist file. See here for more information.

Is there a japanese kana font on the iphone by default?

I was wondering if there is a built-in font for Japanese kana in the iPhone OS?
I was wanting to display kana characters and figured it would be easier to generate them in a UILabel as text versus creating a .PNG and display them in a UIImageView. I would want this to be available to non-Japanese iPhones/iPods. I'm not 100% aware if there are differences in the localizations of them as I could not find any of this info in the Dev. Center. Thank you for our time!
Yes, there's a font which contains Hiragana, Katakana and Kanji. I'm not sure if there's a way to specify the style of the font though.
You can type Japanese straight into an 'NSString' and set the label text, it will show up no problem.
**Edit: ** I found this list of fonts on the iPhone, which lists "Hiragino Kaku Gothic ProN W3", a Japanese font. You can find it on the Mac too, it's the standard Japanese font. There's also a bold version. There doesn't seem to be a rounded version, just gothic.
http://www.alexcurylo.com/blog/2008/10/05/snippet-available-uifonts/