Android 更改字体
1. 将字体ttf文件放在assets目录下
2. 使用:
1 Typeface mTypeFaceLight = Typeface.createFromAsset(context.getAssets(), "OpenSans-Light.ttf"); 2 3 tvName.setTypeface(mTypeFaceRegular);
3. 中文设置斜体
textView.setTypeface(Typeface.MONOSPACE, Typeface.ITALIC);