2012-07-06 30 views

回答

0

對於使用自定義字體的使用此代碼,

TextView txt = (TextView) findViewById(R.id.custom_font); 
Typeface font = Typeface.createFromAsset(getAssets(), "YourFontNamer.rtf"); 
txt.setTypeface(font); 

,如果你需要更多的是指這個博客http://mobile.tutsplus.com/tutorials/android/customize-android-fonts/

+0

,我建議立即進行刪除把「MyFont.ttf」項目的Android裏面? – NMNM 2012-07-06 09:57:25

+0

不,你把你的字體放在資產文件夾中。 – Aerrow 2012-07-06 09:58:21

+0

這個字體很大程度上支持Unicode,但是,它看起來並不漂亮 – Jacky 2014-01-07 02:16:03

相關問題