在Android的马拉雅拉姆语字体?拉姆、马拉、字体、Android

2023-09-03 23:23:03 作者:养猪仙人

我想开发它包含了我想补充马拉雅拉姆语字体.. malyalam文本的应用程序是所有的Andr​​oid devices.can任何一个这种兼容的,请帮我解决这个

i want to develop an application which contain malyalam text for that i want to add malayalam font.. is this compatible on all android devices.can any one please help me to solve this

在此先感谢

推荐答案

在项目的资产文件夹添加乌拉圭回合的字体文件,然后用 setTypeface的帮助()功能设置字体的TextView。我have't try'd它BT我觉得你一定会发现它的帮助。

add ur font file in assets folder of your project, then with the help of setTypeface() function set the font for textview. I have't try'd it bt i think u will surely find it helpful.

Typeface typeFace = Typeface.createFromAsset(getAsset(),"malyalam.fnt");

,然后将其添加到您的TextView像下面

and then add it to your textview like below

textView.setTypeFace(typeFace);

希望这会为U,让我的手指交叉:)

hope this will work for u, keeping my fingers crossed :)