[英]I want to develop an app in android using indic font, also want to show indic font in dialog box
I have done an app to show tamil data on text view to putting elcutni.ttf in android asset folder for that. 我已经做了一个应用程序,可以在文本视图上显示泰米尔语数据,从而将elcutni.ttf放在android资产文件夹中。 Then I made a fonts folder by using
然后我使用创建了一个字体文件夹
Typeface tf = Typeface.createFromAsset(this.getAssets(),"fonts/vigyapti.ttf");
txt.setTypeface(tf);
I am showing tamil data on text view a sample tamil data is taken from random site and store it in the strings.xml file. 我在文本视图上显示泰米尔数据,示例泰米尔数据取自随机站点,并将其存储在strings.xml文件中。 How can I show data on text view and dialog box of indic fonts?
如何在文本视图和印度字体对话框中显示数据? Please help me to make app which contains all indic fonts.
请帮助我制作包含所有印度字体的应用程序。 Please help me to show indic font data on dialog box and text view.
请帮助我在对话框和文本视图上显示印度字体数据。
It seems like you are on the right way, although maybe not the correct font. 看起来您的方法正确,尽管可能不是正确的字体。 Have a look at this post to see if it helps:
看看这篇文章,看看是否有帮助:
http://lkalarani.blogspot.com/2011/04/tamil-in-android.html http://lkalarani.blogspot.com/2011/04/tamil-in-android.html
Also, what is exactly the problem with the code you posted? 另外,您发布的代码到底有什么问题? Do you get an exception?
你有例外吗? If it's not correctly rendered, have you got any screenshots?
如果渲染不正确,您有截图吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.