android 中设置字体的方式

android 中可以设置自己添加的字体:比如宋体之类的

Typeface typeface=Typeface.createFromAsset(getAssets(),"font/font_"+i+".ttf");
                textView.setTypeface(typeface);

汉字字体通常都是10M左右,放到apk中相当不划算 - -!,还是用图片代替。

原文地址:https://www.cnblogs.com/lipeil/p/2666775.html