Italic font style not working in WebView for Google Fonts
Using Google Fonts in a HTML file displayed via the WebView, if the font-style is set to italic, the font does not render italicised.
The same goes for the font-weight. Setting it to bold, the text renders normally.
This seems to only be the case for these custom fonts, with "system" fonts (eg Arial) rendering both bold and italic, when set.
I have pulled the files form the device using ADB and ran them locally, and in Chrome, they display correctly, both bold and italic.
You have to check the boxes for bold and italic when using Google Fonts. Otherwise you will only get one version. Go back to your fonts page on Google Fonts and check the desired styles and grab the new link.
链接地址: http://www.djcxy.com/p/66462.html