I've loaded a particular font (Montserrat-Regular.ttf) into my assets directory and now I want to specify it within the HTML CSS for a Webview. Is there a simple format to do this? If I construct my HTML like this, it doesn't change the typeface from Arial:
Any suggestions?
B4X:
Dim html As StringBuilder
html.Initialize
html.Append("<html>")
html.Append("<head>")
html.Append("<style>")
html.Append("h1 {color:black;font-family:'Montserrat-Regular';font-size:20;}")
html.Append("h2 {color:black;font-family:'Montserrat-Regular';font-size:18;}")
html.Append("p {color:black;font-family:'Montserrat-Regular';font-size:15;}")
html.Append("</style>")
html.Append("</head>")
html.Append("<body>")
...
...
html.Append("</body>")
html.Append("</html>")
Any suggestions?