public static void setTypeFace(Context context, Paint paint, Typeface tf) {
if(tf!=null){
paint.setTypeface(tf);
}else{
// paint.setTypeface(Typeface.DEFAULT_BOLD);
Typeface font = Typeface.create(Typeface.SANS_SERIF, Typeface.NORMAL);
paint.setTypeface(font);
}
} |