有没有办法在Android的主题中添加自定义字体?
我已阅读快速提示:自定义Android字体,但在这里我们必须以编程方式将自定义字体添加到文本中.
TextView txt = (TextView) findViewById(R.id.custom_font);
Typeface font = Typeface.createFromAsset(getAssets(), "Chantelli_Antiqua.ttf");
txt.setTypeface(font);
Run Code Online (Sandbox Code Playgroud)
但我想按样式/主题设置自定义字体.