更改字体我使用此代码为我的网页视图在网页视图
@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