【发布时间】:2012-08-14 08:10:13
【问题描述】:
我想为显示故事构建应用程序,其中 storyname 和 storycontent 应该以古吉拉特语显示。
我用过Shruti.ttf字体
storyname 我使用了 textview,storycontent 我使用了 webview
Typeface font = Typeface.createFromAsset(this.getAssets(), "shruti.ttf");
poetryTitleText.setTypeface(font);
poetryTitleText.setText("Snow White");
而且效果很好。
但是为了在 webview 中显示 storycontent,我使用了 HTML 页面并在 HTML 的 <style> 标记中设置了字体名称。但它显示方形图标。
模拟器不会以古吉拉特语显示字体。即使我从 R.string 文件发送古吉拉特语字符串。
帮帮我。
提前致谢
【问题讨论】:
-
嘿,如果你找到了解决方案,那么请帮助我,我有同样的问题..
标签: android android-emulator android-widget