标签:android
//得到TextView控件对象 TextView textView = (TextView)findViewById(R.id.custom); //将字体文件保存在assets/fonts/目录下,创建Typeface对象 Typeface typeFace = Typeface.createFromAsset(getAssets(), "fonts/HandmadeTypewriter.ttf"); //应用字体 textView.setTypeface(typeFace);
标签:android
原文地址:http://blog.csdn.net/anjon520/article/details/38024433