本文介绍了打字乌尔都语/阿拉伯文文本编辑/ TextView中Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我要创造,我可以添加和检索乌尔都语词语的数据库。为此我安装了2009年专业的页内广告素材和复制其字体(.TTF)置入资产文件夹,但它给了一个错误即我还装UrduFonts.exe并复制其字体JameelNooriNastaleeq.ttf,但它也给了同样的错误。我需要的乌尔都语字体是兼容到Android,可以添加和检索乌尔都语采用了android并从数据库中的字体。这是我的codeD FOA一个Lcd2Mono.ttf,我有该字体的真实体验,但我没有成功。这里是我的一块code ..I want to create a database in which i can add and retrieve the Urdu words. for this purpose i installed Inpage 2009 professional and copied its fonts (.ttf) into assets folder but it gave an error i.eI also installed UrduFonts.exe and copied its font JameelNooriNastaleeq.ttf but it also gave the same error. i need the Urdu font that is compatible to the android , the font that can add and retrieve Urdu to and from the database using android.this is how i coded foa a Lcd2Mono.ttf and i am having the true experience of that font but i am unsuccessful. here is my piece of code..私人的EditText TXT,启动,乌尔都语;private EditText txt,start,urdu; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); urdu=(EditText) findViewById(R.id.urdu); try { urdu.setTypeface(Typeface.createFromAsset(this.getAssets(),"urdu.ttf")); urdu.setText("ur text"); } catch(Exception ex) { start.setText(ex.toString()); }我做了一些与页内广告素材字体和得到异常的本地字体.....i did some with Inpage Fonts and got Exception that Native Font.....推荐答案我觉得JameelNooriNastaleeq.ttf字体是非常巨大的,超过10M(可能在某种程度上连接到你的问题),我建议尝试一些更小的,如: http://www.quran.or.kr/urdu/font/asunaskh.ttfi think JameelNooriNastaleeq.ttf font is very huge, more than 10M (maybe somehow connected to your problem), i recommend to try something much more smaller like: http://www.quran.or.kr/urdu/font/asunaskh.ttf但仍然在这个问题连接乌尔都语字符,如发行:but still issue with connecting the urdu characters, like in this question: 如何添加语言支持到Android你有什么异常? 这篇关于打字乌尔都语/阿拉伯文文本编辑/ TextView中Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-12 15:28