I completely agree that this is a mistake that @Yahreen already answered.
I noticed that although I had this problem with the site I was working on, some pages worked better than others. So I spent some time trying to figure out why this was, and if some kind of โworkaroundโ could be used at the same time.
I personally had problems displaying Webfonts in Chrome on Android - Nexus S and Nexus 7.
I found that if you play with the width of your elements, it seems that to some extent you can get around this error and still get 18px web fonts for proper rendering.
In the attached code sample, everything works at a maximum width of 88.8%. You may have a wider first DIV, but then it breaks the ones below. Everything seems to work in this magic percentage. This may be a workaround for some people. Your mileage may vary, and you may need to play with interest - I needed to adjust the percentage a bit in a small response (gridpak), but I suspect that it probably still matches the same logic in the overall percentage. In the end, the behavior of this error is strange, but it is like stabilizing it into some kind of useful template and maybe it will help you.
Someone else can understand a little deeper what is played here, and perhaps offer some more tips / explanations.
Here you can see the test: http://richhollis.github.com/grumpy-wizard-font-test/
<!DOCTYPE> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Grumpy Wizards</title> <meta name="viewport" content="width=device-width"> <link href='http://fonts.googleapis.com/css?family=Finger+Paint' rel='stylesheet' type='text/css'> <style> body { font-family: 'Finger Paint', cursive; } </style> </head> <body style="margin:0; padding:0; background-image: url('http://www.thezorklibrary.com/history/image/grumpy_wizard1a.png')"> <div style="width: 88.8%; background: red; opacity: 0.8"> <h1>Grumpy wizards make toxic brew for the evil Queen and Jack</h1> <h2>Grumpy wizards make toxic brew for the evil Queen and Jack</h2> <p>Grumpy wizards make toxic brew for the evil Queen and Jack</p> <p style="font-size:18px">18px Grumpy wizards make toxic brew for the evil Queen and Jack</p> <p style="font-size:17px">17px Grumpy wizards make toxic brew for the evil Queen and Jack</p> </div> <div style="width: 88.8%; background: yellow; opacity: 0.8"> <h1>Grumpy wizards make toxic brew for the evil Queen and Jack</h1> <h2>Grumpy wizards make toxic brew for the evil Queen and Jack</h2> <p>Grumpy wizards make toxic brew for the evil Queen and Jack</p> <p style="font-size:18px">18px Grumpy wizards make toxic brew for the evil Queen and Jack</p> <p style="font-size:17px">17px Grumpy wizards make toxic brew for the evil Queen and Jack</p> </div> <div style="width: 88.8%; background: purple; opacity: 0.8"> <h1>Grumpy wizards make toxic brew for the evil Queen and Jack</h1> <h2>Grumpy wizards make toxic brew for the evil Queen and Jack</h2> <p>Grumpy wizards make toxic brew for the evil Queen and Jack</p> <p style="font-size:18px">18px Grumpy wizards make toxic brew for the evil Queen and Jack</p> <p style="font-size:17px">17px Grumpy wizards make toxic brew for the evil Queen and Jack</p> </div> <div id="size"></div> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.2.min.js"><\/script>')</script> <script>$(function(){ $("#size").text("window.innerWidth = " + window.innerWidth); });</script> </body> </html>
source share