Friday 15 April 2011

Android font rendering, i am getting very bad view -



Android font rendering, i am getting very bad view -

i using arial.ttf in project. in genymotion emulator,in mobile devices text view good. in sony xperia tablet 4.1.1 have text rendering problem. text looking bad. should do?

<textview android:id="@+id/yazi1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/ret" android:textcolor="@color/siyah" android:textcolorhint="@color/siyah" android:textsize="@dimen/font14" /> typeface tfarial = typeface.createfromasset(getassets(), "arial_tur2.ttf")

screenshot http://hizliresim.com/ynjjwk

use otf instead of ttf. can problem. in situation , changing file otf solved problem.

otf more “better” font, supports more advanced typesetting features (smallcaps, alternates, ligatures , on within font rather in fiddly separate expert set fonts). can contain either spline (ttf-style) or bezier (postscript type 1-style) curves, you're getting shapes font designed in , not potentially-poorer-quality conversion.

on other hand, if you're downloading free fonts shovelware sites, you're unlikely of that. indeed, may simple getting ttf font renamed otf.

android fonts font-face genymotion

No comments:

Post a Comment