Is it possible to check what family a Typeface object is using in Android API 8?
I am creating the Typeface on a Paint object like so
//Simplified co
If you look at the sources, you will see that the default ones are created with style DEFAULT (*), so:
DEFAULT
Typeface paintTf = paint.getTypeface(); Typeface.SERIF.equals(Typeface.create(paintTf, Typeface.DEFAULT));
might do the job (here I check is family is serif).
NB: (*) is not true for DEFAULT_BOLD.