更改字體我使用此代碼爲我的網頁視圖在網頁視圖
@font-face {
font-family: IRANSans;
src: url("\file:///android_asset/fonts/IRANSansWeb.ttf\")
}
body {
text-align: justify;
direction: rtl;
font-family: IRANSans;
}
img {
max-width: 100%;
height: auto;
}
figure {
max-width: 100%;
height: auto;
}
iframe {
width: 100%;
}
對我的一切工作,這段代碼除了字體系列。
我的意思是文本對齊和RTL非常好,但是我的字體是不是我想要的 我把我的ttf文件中assets > fonts