版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qulonglong110/article/details/84990646
public void setFontSanFrancisco(Context context, TextView textView) { Typeface typeface = Typeface.createFromAsset(context.getAssets(), "SanFranciscoDisplayRegular.ttf"); textView.setTypeface(typeface); }
字体包放在assets目录下