I have implemented this code in my web view.
@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%;
}
Everything seems to be working correctly with this code except for the font family.
Although the text is justified and right-to-left oriented, the font is not displaying as desired.
I have placed my ttf file in assets > fonts