Android Question How change webview font?

omidaghakhani1368

Well-Known Member
Licensed User
Longtime User
Hi.
I try to change webview font with font-face but i cannot
Is there any way to change font?
It's very very important for me
 

sorex

Expert
Licensed User
Longtime User
here you go

B4X:
    WebView1.LoadHtml("<html><head><style>.f1{font-family:""Arial"";} .f2{font-family:""Times New Roman"";}</style></head><body><p class=f1>abcdef</p><p class=f2>abcdef</p></body></html>")
 

Attachments

  • webview_fonts.jpg
    webview_fonts.jpg
    4.8 KB · Views: 353
Upvote 0
Top