开发者

gujarati font type in android application [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhet开发者_运维技巧orical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

i want to display gujarati font in android application


put the gujarati font file in your assets folder of your project, then, in your code, you can use setTYpeface() function to set the font for the text view.

first:

Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/xyz.otf");

then:

text.setTypeFace(tf);

Hope this helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜