加载新自定义字体的 方法

1. Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "fonts/huawenxingkai.ttf");

if(convertView instanceof TextView) {
((TextView) convertView).setTypeface(mTypeface);
((TextView) convertView).setTextSize(24);
((TextView) convertView).setGravity(Gravity.CENTER);
((TextView) convertView).setTextColor(mContext.getResources().getColor(R.color.common_black));
((TextView) convertView).setHeight(itemHeight);
}

2. Typeface mTypeface = Typeface.create("ltxh", Typeface.NORMAL);
原文地址:https://www.cnblogs.com/wxmdevelop/p/6169239.html