omidaghakhani1368 Well-Known Member Licensed User Longtime User Feb 6, 2015 #1 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
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
S sorex Expert Licensed User Longtime User Feb 6, 2015 #2 gimme a minute and I'll show you how Upvote 0
S sorex Expert Licensed User Longtime User Feb 6, 2015 #3 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 4.8 KB · Views: 393 Upvote 0
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>")
omidaghakhani1368 Well-Known Member Licensed User Longtime User Feb 14, 2015 #4 I want to use external font Upvote 0
S sorex Expert Licensed User Longtime User Feb 14, 2015 #5 if webview supports it then you can define your external font via CSS aswell. Upvote 0
omidaghakhani1368 Well-Known Member Licensed User Longtime User Feb 14, 2015 #6 Which version of webview support external font? Upvote 0
NJDude Expert Licensed User Longtime User Feb 14, 2015 #7 You only need to reference the external font, like this for example: B4X: <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> You have to include that line in the HEAD of your HTML. Upvote 0
You only need to reference the external font, like this for example: B4X: <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> You have to include that line in the HEAD of your HTML.
omidaghakhani1368 Well-Known Member Licensed User Longtime User Feb 14, 2015 #8 Thank you.i test it Upvote 0