在Android应用程序中显示马拉地语字体(印度语区域语言)

时间:2016-07-28 10:40:49

标签: android regional

我一直试图在我的应用中使用此link显示马拉地语字体。但有些人如何不为我工作。它没有错误,但在文本视图中没有显示任何字体。当我第一次尝试这样做时,我开始了解国际化概念。

1 个答案:

答案 0 :(得分:0)

TextView info=(TextView)findViewById(R.id.textview);
Typeface face= Typeface.createFromAsset(this.getAssets(), "fonts/FontAwesome.otf");
info.setTypeface(face); 
info.setText("TypeFace"); 

enter image description here

相关问题