Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: custom font in WebView using CSS issue
    primarykey
    data
    text
    <p>I'm currently developing an app using web view. I created some html files along with images and css (inside html file). When I put the files into assests folder the custom font is not loading. Without anychange i put it on server and accessed via mobile browser or accessed it via the app refering the online url (i.e. <a href="http://hotwordpresstips.com/japs/Index.html" rel="nofollow">http://hotwordpresstips.com/japs/Index.html</a>) and it shows properly. what am I missing here?? please find my HTML code below. If you want I'll put the java code too.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style type="text/css"&gt; @font-face { font-family: MyCustomFont; src: url("Bamini.eot") /* EOT file for IE */ } @font-face { font-family: MyCustomFont; src: url("Bamini.ttf") /* TTF file for CSS3 browsers */ } body { font-family: MyCustomFont, Verdana, Arial, sans-serif; font-size: medium; color: black } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div style="border:2px solid black;"&gt; &lt;img src="header.jpg" width=100%&gt; &lt;h1&gt;,yq;ifiaj; jhf;fpa [g;ghdpau;fs;&lt;/h1&gt; &lt;UL&gt; &lt;LI&gt;&lt;a href="intro.html"&gt;cyf Aj;jk; mwpKfk;&lt;/a&gt;&lt;/LI&gt; &lt;LI&gt;&lt;a href="america.html"&gt;mnkupf;fhtpd; tUif&lt;/a&gt;&lt;/LI&gt; &lt;LI&gt;&lt;a href="pilot.html"&gt;tPuk; epiwe;j tpkhd Xl;b&lt;/a&gt;&lt;/LI&gt; &lt;LI&gt;&lt;a href="colombo.html"&gt;nfhOk;G&gt; jpUkiyj; jhf;Fjy;&lt;/a&gt;&lt;/LI&gt; &lt;LI&gt;&lt;a href="end.html"&gt;KbTiu&lt;/a&gt;&lt;/LI&gt; &lt;LI&gt;&lt;a href="image.html"&gt;gbkq;fs;&lt;/a&gt;&lt;/LI&gt; &lt;img src="footer_main.jpg" width=100%"&gt; &lt;/UL&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload