is there a way to add a font into assets folder and load it for html?
<p>i want my text look better in <a href="https://stackoverflow.com/questions/40482556/is-it-possible-to-use-web-view-as-a-html-reader-offline">web view</a> but when i try to load a font for it,it doesnt change.
according to some questions <a href="https://stackoverflow.com/questions/28090118/using-downloaded-font-offline">this</a> and <a href="https://stackoverflow.com/questions/107936/how-to-add-some-non-standard-font-to-a-website">this</a> i found this code:</p>

<pre><code>&lt;style type="text/css"&gt;
@font-face {
font-family: "My Custom Font";
src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}
p.customfont { 
font-family: "My Custom Font", Verdana, Tahoma;
}
&lt;/style&gt;
&lt;p class="customfont"&gt;Hello world!&lt;/p&gt;
</code></pre>

<p>i tried this for loading it from assets:</p>

<pre><code>&lt;style type=text/css&gt;
@font-face {
font-family: "ROYA";
src="Roya.ttf";
}
p.customfont { 
font-family: "ROYA", Verdana, Tahoma;
}
&lt;p class="ROYA"&gt;Hello world!&lt;/p&gt;
</code></pre>

<p>but it doesnt working. what should i do?</p>