After my Samsung Galaxy S3 phone recently updated from Android 4.1.3 to Android 4.3, I noticed that some of the websites I designed are not displaying the fonts correctly. These sites were tested on the Android internet browser and use @font-face
. How can I go about fixing this issue?
One of the affected sites (development version):
Below is a snippet of the CSS code related to Open Sans font:
@font-face {
font-family: 'OpenSansSemibold';
src: url('http://beta.kdfansite.com/wp-content/themes/scrollider/scrollider/webfonts/Open-Sans/OpenSans-Semibold-webfont.eot');
src: url('http://beta.kdfansite.com/wp-content/themes/scrollider/scrollider/webfonts/Open-Sans/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'),
url('http://beta.kdfansite.com/wp-content/themes/scrollider/scrollider/webfonts/Open-Sans/OpenSans-Semibold-webfont.woff') format('woff'),
url('http://beta.kdfansite.com/wp-content/themes/scrollider/scrollider/webfonts/Open-Sans/OpenSans-Semibold-webfont.ttf') format('truetype'),
url('http://beta.kdfansite.com/wp-content/themes/scrollider/scrollider/webfonts/Open-Sans/OpenSans-Semibold-webfont.svg#OpenSansSemibold') format('svg');
font-weight: normal;
font-style: normal;
}
/* ... */
h2 {
font-family: 'OpenSansSemibold', Arial, sans-serif;
/* ... */
}
I have similar declarations for all the fonts used on the website. The issue seems to only occur in the Android Internet browser, as other browsers like Chrome for Android and Firefox for Android display the fonts correctly.
I'm volunteering on this project and need to resolve the CSS problem quickly, so I'm hoping for a straightforward solution rather than a detailed code review. As a UX designer, not a web developer, any assistance would be greatly appreciated. Thank you!
Edit: Today, I tried debugging with Edge Inspect CC and weinre by connecting my Android phone and iPad to my laptop. Interestingly, I was able to change font families on the iPad but not on the phone using Weinre. Font colors, however, could be changed on both devices. It appears that the underlying issue might be related to the limitations of changing fonts when using a remote debugger.