Cordova应用程序显示手机的默认字体系列 [英] Cordova application shows phone's default font family
问题描述
Iam新的cordova应用程序开发,我有一个在android和ios paltform在阿拉伯字体从服务器采取在线corodva应用程序,但它显示不是在正确的字体系列,我想要的字体系列me_quran,serif ..我希望现在阿拉伯文本显示为手机的默认字体系列。
Iam new to cordova application development, i have a developed an online corodva app both in android and ios paltform in which arabic font is taking from the server, but it is displaying not in the correct font family , i want the font family "me_quran", serif.. I hope now the arabic text is showing as phone's default font family.
如何显示在正确的字体系列?
谢谢。
How can i show in the correct font family?? Thank You.
推荐答案
我怀疑字体文件未加载。假设你使用CSS,你是否包括了字体源文件?例如
I suspect that the font file isn't loading. Assuming you are using CSS, have you included the font source file? e.g.
@font-face {
font-family: "MeQuaran";
src: url('me_quaran.ttf');
}
将.ttf文件放在platforms / android / assets / www /可以。
Place .ttf file in platforms/android/assets/www/ and you should be OK.
这篇关于Cordova应用程序显示手机的默认字体系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!