Typeface.defaultFromStyle(int style)
其中Style的值是整数,且取值范围
int: Value is NORMAL, BOLD, ITALIC, or BOLD_ITALIC
编辑1
经过一番研究,我发现Typeface并没有提供字体名称。然后我找到了这个 SO,它提供了非常有用的信息,并引导我们去看另一个 SO,里面有一个自定义的FontListProvider,并说明第一个字体将是默认字体。如果您使用该自定义类,则很容易找到默认字体。
final List<FontListParser.SystemFont> fonts = FontListParser.safelyGetSystemFonts();
String[] items = new String[fonts.size()];
for (int i = 0; i < fonts.size(); i++) {
Log.e("Font",fonts.get(i).name);
}