2
我試圖在手機中爲我的應用程序製作自定義字體。Android 4.1.2中的自定義波斯語和阿拉伯語字體Phonegap(科爾多瓦)不工作
@font-face {
font-family: 'customfont';
src: url('fonts/BMitra.eot?#') format('eot'),
url('fonts/BMitra.woff') format('woff'),
url('fonts/BMitra.ttf') format('truetype');
font-style: normal;
}
body {
font-family: "customfont";
font-size:30px;
}
....
<body>
<h>Custom Fonts</h>
<div style="font-family: 'customfont';" id='txt1'>This is for sample</div>
</body>
它工作正常,紋波(鉻模擬器),但它不會對設備的工作(三星:對於這一點,我在HTML文件中寫了這個代碼安卓4.1.2)
我有googled
和stack-overflowed
找到解決辦法,我發現這個職位font-face on android 4.0.x doesn't work它說有text-rendreing:auto
,但它沒有工作過。
任何幫助,將不勝感激。
Thanx,這是解決方案。但你的鏈接無效。 這是新的鏈接: http://averta.net/labs/fa/?p=10 – SalmanShariati 2014-11-19 20:15:50
@Salman謝謝我已經取代了鏈接 – RezaRahmati 2014-11-20 07:57:12