I really hope someone can help me with this!
I build an app last year that uses webviews to display html strings I recieve from a webservice.
Those html strings need to be displayed in a custom font.
I use CSS in the webview to define the custom fonts like this:
This used to work perfectly. But now I'm making a new version of the app and I notice that suddenly the custom fonts are no longer working in the webviews! I'm using the exact same code as last year, without a single change.
Did something change in the way the webview works? Does the fact that I recently upgraded to b4a 3.8 have anything to do with it?
I've tried everything but I can't get it to work! Please help me out because the customer is waiting on me
I build an app last year that uses webviews to display html strings I recieve from a webservice.
Those html strings need to be displayed in a custom font.
I use CSS in the webview to define the custom fonts like this:
B4X:
<html>
<style type=""text/css"">
@font-face{
font-family: eurostile;
src: url('file:///android_asset/EurostileLTMedium.ttf');
}
@font-face{
font-family: 'italic';
src: url('file:///android_asset/italic.ttf');
}
@font-face{
font-family: 'bold';
src: url('file:///android_asset/EurostileLTBold.ttf');
}
body{
color: #464646;
line-height:150%;
font-family: eurostile;
}
B, strong, h6{
color: #464646;
line-height:150%;
font-family: 'bold';
}
em, i{
color: #464646;
line-height:150%;
font-family: 'italic';
}
a {
color: rgb(22, 115, 159);
}
</style>
<body>This is a <b>test</b>, does <i>it work</i>?</body>
</html>
This used to work perfectly. But now I'm making a new version of the app and I notice that suddenly the custom fonts are no longer working in the webviews! I'm using the exact same code as last year, without a single change.
Did something change in the way the webview works? Does the fact that I recently upgraded to b4a 3.8 have anything to do with it?
I've tried everything but I can't get it to work! Please help me out because the customer is waiting on me