我正在使用JQM构建移动应用程序,我需要使用font-face声明自己的字体.
我在我的index.html中包含了字体css文件fonts.css作为第一个加载的css文件,并声明font-faces如下:
@font-face {
font-family:"MyFont";
font-weight:normal;
font-style:normal;
src:url("fonts/MyFont.woff");
src:url("fonts/MyFont.eot?") format("eot"),
url("fonts/MyFont.woff") format("woff"),
url("fonts/MyFont.ttf") format("truetype"),
url("fonts/MyFont.svg#MyFont") format("svg");
}
Run Code Online (Sandbox Code Playgroud)
我的两个测试设备是Google Nexus 7与安卓4.2.1和Motorola Razr与安卓4.0.4.
在谷歌Nexus上,它适用于移动Chrome和PhoneGap.但在摩托罗拉Razr上,它仅适用于移动Chrome.Android浏览器和Phonegap都没有使用MyFont.
是否有任何解决方法可以让我的Font在Android 4.0.x上运行?