Arabic fonts for Android - android

I am new in android world. I have issue with arabic font on android device they overlap each other . And some of them are unreadable please help where i am wrong or provide some solution for it.

I used Cavorting.otf downloaded from google and worked fine for me. I also increased font size to 25sp so it can be readable easily. I recommend you to increase the font size then try changing different fonts.

Related

Wrong Khmer Unicode string

I have problem with displaying Khmer Unicode in most of Android project. What I want to display is អ៊ីមែល but the result return with unexpected value.
I also try with custom font in Khmer and support encoding as utf-8 but it still return the same result.
I'm not sure it is because of font or Android not support Khmer Unicode very well for now.
Any help anyone?
Likely link to font face that you are using, are you using. Here are some example, are you using Nokora, right?
And I could see also for Google web font, the written is the same:
So please check the correct font face before using, even in Noto google font face also, some are correct, some not correct too for that written.

How to use new Google's Sans font in my Android App?

How can I use the font seen in fresh Google's apps like Phone, Contact and Google Fit in my Android App? Is there some new textAppearance value for this? Here's the preview of desired font (titles):
As I could find out, this font is called something like "Google Sans".
Thanks.
I too wondered here and there to know how to use that font. I came to know that you cannot use it legally and for official use but if you have personal use then you can use this answer.
I am adding this answer only to answer your question but not to allow everyone to use that font!!
Here are the steps:
Download the font zip file by checking out my blog post
Make directory named font under res folder and add the TTF files under it.
Now add the font to the TextView using this attribute:
android:fontFamily="#font/google_sans"
I am sure that this will work for all devices.
But again I tell you, don't use it for professional work!!
I've also was wondering how to use it, for personal use though. Oddly enough I used this and it works perfectly fine, though I own a pixel device and am pretty sure this won't work on other devices. Here's what I used for the TextView:
android:textAppearance="#android:style/TextAppearance.DeviceDefault.Widget.Button"

Support for marathi font

In my application i want to use marathi font.I know how to use custom fonts in android.The problem is that when i use "Kruti Dev" it shows in android studio preview emulator even thought i have not set it.But if i try to use "Subak" font i am not getting the desired output.
So please can you tell me how will i be able to use this font.
Custom Font Code
Typeface face=Typeface.createFromAsset(getAssets(),
"fonts/subak.ttf);
There is an issue in Android 5.0 that causes some custom fonts to not render when loaded via the Typeface.createFromAsset() function.
The workaround is to re-encode the font that is not displaying. Upload the font file to http://www.freefontconverter.com/ and convert it to output as a TTF. Place the outputted file back in your assets folder and it should now display correctly on Android.
This issue was fixed in the Android 5.1 release.
Reference:
https://androidbycode.wordpress.com/2015/06/02/help-my-custom-font-does-not-work-on-android-5-0/

kannada text support on older Android devices

how to show kannada text on older devices.
I have tried with font files but rendering is not correct.
I have tried indic text renderer but I was stuck at
SharedLibrary : libcomplex-script-rendering.so
C:/users/vamsikrishna.g/Downloads/indic-text-renderer-72ba1d4f4f36/obj/local/armeabi/objs/complex-script-rendering/complex-script-rendering.o: In function `Java_org_iisc_mile_indictext_android_EditIndicText_drawIndicText':
C:/users/vamsikrishna.g/Downloads/indic-text-renderer-72ba1d4f4f36/jni/complex-script-rendering.c:136: undefined reference to `hb_ft_font_create'
I was not able to resolve this issue which is experienced by lot of people .
so if any body resolved or has any ideas on rendering kannada text on old Android phones
please help.
Now, far sure it is clear that a TTF file should be present to provide characters and an appropriate libraries (libskia.so or libharfbuzz.so i.e. as an example ) are required to render them correctly.
Replace the firmware of your device with similar Indian region's firmware to render the Kannada font correctly. Other regions' firmware do not render the Kannada fonts correctly. Kannada fonts correctly render on Indian Region's Android version 2.x.
please raise the points if you found this solution feasible,will be thankful to you.
If this is for a particular application:
You need to keep the ttf file in your assests folder and
follow the link...
how to add font in Android Application
this one in for hindi... You can do the same for kannada

supporting non-english characters in android

I want to know that how good is android when supporting non-english characters? Is it possible to embed fonts in my app and make the app to use that font?
The system fonts already support Unicode language very well (as well as Eclipse, but you will have to select new encoding when saving, Eclipse will confirm this).
You can embed your fonts as well. Look at this tutorial and this discusstion.
More information: I'm working on Vietnamese. The system is perfect for Vietnamese, and I think it is for other languages, too.
FYI the emulator with android 2.3.3 support hebrew characters.
But you can use your own fonts if you want.
Place them in the res/assets folder, then
TextView txt = (TextView) findViewById(R.id.custom_font);
Typeface font = Typeface.createFromAsset(getAssets(), "my_font.ttf");
txt.setTypeface(font);
I'm a developer for a japanese company and i've hadno problems with japanese characters even on devices set for english. However, if you want to use custom fonts, use vvieux's code :)

Categories

Resources