We're using a custom ttf font (Calibri) for an app and it renders really badly on Samsung 4.4.2, in some cases no text is rendered at all. On other tested devices and Samsung with other versions (4.4.4, 4.1.2), there are no issues at all. For two Samsung devices (the only two we have with 4.4.2) it looks like this:
We are using the MagicViews library (https://github.com/ikocijan/MagicViews) to deal with custom fonts, so far we didn't have any problems with it.
EDIT:
This also happens when loading the font manually, without the library.
To answer my own question.. we solved this by using an .otf version of the font instead of .ttf. My guess is Calibri uses some feature of the ttf format which doesn't work well in this case.
Related
I am developing an application for Android in which I am using Custom fonts, I use more than 50 fonts but there is still same problem that if good running on 4.2.2 then collapse the words in 4.1.2.
Typeface itf = Typeface.createFromAsset(getAssets(),"Quranic fonts.ttf");
tt2.setTypeface(itf);
some of "Araaab " in arabic mix, some "Araabs" not showing proper and clear.
Thanks in advance for help.
The support of arabic fonts and others is still under heavy development (c.f. http://www.androidflux.com/android-4-2-2-jelly-bean-review.html). If you have a version that works with Android 4.1.2 and one with Android 4.2.2, you might consider releasing two different versions or, depending on the amount of work, check the version at runtime and use different implementations depending on that condition.
I am trying to get the kannada font support for Android ICS. I rooted my Xperia Neo L phone which is running Android ICS 4.0.4 and installed Kannada font (Lohit-Kannada.ttf). I have also included the Lohit-Kannada font as family-set in fallback_fonts.xml in the framework. After that, I am able to see the kannada fonts render in browser but the complex script is not supported. Glyphs are not rendered in proper way, though it is just readable. Other indic languages like Tamil, Hindi, Bengali etc renders perfectly but my language is not rendering properly. Someone suggested me to go thru this blog. http://androidandsandu.blogspot.in/2011/12/how-to-add-indian-languages-to-android.html
But i'm not able to find out where to make those file changes. I mean where is that lohit-fonts directory, where is the android.mk file? I'm not able to find those folders or those files in my phone. Any help please?
The link you provided explains how to change the source code of a custom Android image to do what you want:
Prerequisites :
ICS (4.0.3) AOSP source code
...
so I guess it is not possible without building your own custom ROM.
I tested my blog in Burmese using #font-face. It works well on, Chrome, Firefox, IE and Safari. I tested with Window, Mac, iPhone and Galaxy S3 (Jelly Bean 4.1.2).
I found out that every devices display font very well except the Android device. Obviously, the android phone downloads the web font. It displays the font though. It just doesn’t show right.
I use ‘Tharlon’ font from Google font API early access.
My blog ID is http://www.constructionforum-myanmar.com/
I’m not a geek. I’m just a professional from Construction industry who wants to shear my experience and knowledge. I read here and there about coding and wrote this blog and I want it to be able to read on all devices. Burmese font is not displaying on all device though.
Could you please help me? What should I do to solve this font problem on Android.
After all I found out that it works well on other Andriod phones such as HTC One and earlier version for firmware for Galaxy S.
The problem is firmware version (4.1.2) for Galaxy S doesn't render Burmese (Myanmar) font properly.
I'm currently developing an application that was originally meant to be run solely on Nexus 7 and Android 4.2. However, there was a change of plans and now it is meant to run on the Galaxy Tab 2, Android 4.1.1 instead.
I am using a custom font that rendered great on the Nexus 7. However, when downgrading the version of Android and switching to the Galaxy Tab 2, the font kerning got completely messed up and looks terrible. Spacing is way off from what it should be.
Any tips to point me in the right direction for fixing this issue? I don't have the slightest idea how to fix this, except for switching to a different font, which is less than ideal.
Sounds like you may have run across the kerning problem described here: Android Custom View code stopped working correctly in Jelly Bean 4.2
It is possible to work around it.
Why do some fonts render on some stock android browsers and not other stock android browsers? For example, I bought the Have a Nice Day font from myfonts.com and unzipped the package here:
http://jl.evermight.com/myfont/StartHere.html
The font appears fine on my friend's S3, but it appears as Arial on my Galaxy Note (version 1). I upgraded my Galaxy Note OS to 4.0.4. So it's not that old.
What can I do to my css, or webserver, or html code etc... to force the font to render properly on all modern android stock browers?
The problem has been fixed. Apparently there was a bug on myfonts.com that corrupted my font files. I contacted myfonts.com and they corrected the issue right away. Then re-sent me the font files. Now everything works perfectly.
The guys at myfonts.com are amazing. Very good customer + tech support services.