泰米尔字体的文本样式?
我已经在开发一个显示 RSS feed 的 Android 应用程序。 我的问题是这个 feed 有一些泰米尔语行(Android 仍然不支持)
我在网上找到了一种可以正确显示文本的字体(无需转换为 Bamini),但问题是 textStyle 对它没有任何影响。
那么你知道有什么字体可以完成这项工作或者我必须做些什么来制作文本样式吗? 提前致谢
I'm already working on an Android application that displays RSS feed.
My problem is that this feed has some lines in Tamil(which Android still doesn't support)
I found a font online that displays the text right(without converting to Bamini) but the problem is that textStyle doesn't have any effect on it.
so you know any font that can do the job or any thing i have to do to make textStyling?
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要做的就是在使用自定义字体之前将其导入手机。
一个好方法是将它们包含在包中 - APK 文件中,
因此,在构建 APK 文件时,您的项目中应该包含该字体。
让我举个例子。假设您的泰米尔字体的名称是 Harabara.ttf 并且您已将其复制到 /assets/fonts
使用此方法(在您的活动中的任何位置)
并从 onCreate 中调用此 API,如下所示
确保您已声明此类级别变量
最后,只需使用
多田!泰米尔字体现在应该开始显示。
南德里·瓦纳卡姆、
瓦伊迪亚纳坦
What you need to do is import custom fonts on to the phone before using them.
A good way to do that is to include them in the package - in the APK file
Hence you should be having the font in your project when you build the APK file.
Let me give you an example. Assuming your tamil font's name is Harabara.ttf and you have copied it to /assets/fonts
Use this method (anywhere in your activity)
and call this API from your onCreate like this
Make sure you have declared this class level variable
Finally, simply use
tada ! tamil font should now start displaying.
nandri vanakkam,
vaidyanathan
在线有数百种字体可用。您是否检查过一些 TSCII 字体?
我已经为泰米尔语和 Android 问题编写了一些解决方案。也检查一下。
There are hundreds of fonts available online. Did you check some TSCII fonts?
I've written some solutions for Tamil and Android issues. Check it out too.