简体   繁体   English

我想使用印度字体在Android中开发一个应用,也想在对话框中显示印度字体

[英]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.

相关问题 印度字体(Kannada)在Android ICS中无法正确呈现 - Indic font(Kannada) is not rendering properly in Android ICS 想要开发多个apk以便在印度播放器上上传印度字体的单个应用程序 - Want to develope multiple apk to upload on google play for single application of indic font 我想在对话框或使用android的弹出框中显示我的登录表单 - I want to show my login form in dialog box or in pop up box using android 我想在我的应用程序中添加一些specifict字体。 我想知道,Android开发人员示例中的字体是什么 - I want to add some specifict font to my app. I want to know, what is a font on android developer example 在Android上渲染卡纳达语(印度)文本 - Rendering Kannada (Indic) Text on Android android,我想在首选项屏幕中显示对话框 - android I want to show dialog in preferences screen 使用harfbuzz和freetype的indic-text-renderer - indic-text-renderer using harfbuzz and freetype 在警报对话框中,我要显示选定的值 - In alert dialog box, I want to show the selected value android:我想用WebViewb使用我的自定义字体 - android : i want use my custom font with WebViewb Android Studio 2.1 - 我想要字体抗锯齿/平滑 - Android Studio 2.1 - I want font antialiasing / smoothing off
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM