• lewisl

    (@lewisl)


    Hello everyone,

    I’m having a bit of trouble and I haven’t had much luck trying to find an answer. With the latest Chrome update the text on my site won’t appear unless I click the white space where it should be. I’ve tried FF and Ie and the text loads fine. I’m using the widget google fonts with Amatic SC as the font on my site. This was never an issue on the previous version of Chrome. If anyone could help or shed some insight it would be greatly appreciated.

    My website can be found at: https://www.lewisloder.com

Viewing 10 replies - 1 through 10 (of 10 total)
  • Trollhunter

    (@trollhunter)

    Is this with Google Fonts?

    If so, I am having the very same problem. Strangely however, on my development site, which has an identical install, content and theme/framework, Google Fonts are showing fine.

    I’m trying to get this sorted out before my client promotes their new site. Does anyone have a clue as to what is causing this? And why is the issue surfacing when accessing one server and not another?

    dannorris42

    (@dannorris42)

    Sorry…have started my own thread. Did not realize
    protocol.

    esmi

    (@esmi)

    @dannorris42: It is considered impolite to interrupt another poster’s ongoing thread unless you are posting a solution or suggestion. As per the Forum Welcome, please post your own topic.

    majbom

    (@majbom)

    Found a solution yet? I have the same problem on several sites

    iSenne

    (@isenne)

    I have the same problem in Chrome. Very weird

    Edit:
    It’s probably related to this chrome bug: https://code.google.com/p/chromium/issues/detail?id=336476

    Trollhunter

    (@trollhunter)

    I’ve got some information on this problem now. It appears to be Google Chrome related- specifically, the latest version: Chrome 33. It’s not rendering the Google fonts properly, and giving developers fits. I have a temporary fix that’s working for me. Credit goes to rafikibubu in Google Groups.

    As long as you have the Google fonts defined as usual in your code, the following can be placed in the <head> section of your PHP file. Essentially, it forces Chrome to load the fonts again. They may take about 3-4 seconds after page load, but it’s better than nothing:

    <script>
    WebFontConfig = {
      google: { families: ['FontOne', 'FontTwo'] },
        fontinactive: function (fontFamily, fontDescription) {
       //Something went wrong! Let's load our local fonts.
        WebFontConfig = {
          custom: { families: ['FontOne', 'FontTwo'],
          urls: ['font-one.css', 'font-two.css']
        }
      };
      loadFonts();
      }
    };
    
    function loadFonts() {
      var wf = document.createElement('script');
      wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
        '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
      wf.type = 'text/javascript';
      wf.async = 'true';
      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(wf, s);
    }
    
    (function () {
      //Once document is ready, load the fonts.
      loadFonts();
      })();
    </script>

    You may want to specify the fonts in the above code, but it seems to be working as is. As I said, this is only a temporary fix. Hopefully Chromium gets this huge problem fixed ASAP.

    *Edit* Thanks for the link above. It appears it is fixed for the forthcoming versions of Chrome.

    Thread Starter lewisl

    (@lewisl)

    Apologies for the late reply, yes it’s with Google fonts. Thanks Trollhunter for sharing your find. I’ll apply the fix now and see if I have any luck.

    Thread Starter lewisl

    (@lewisl)

    It worked, thanks again trollhunter. Hope this helps everyone else.

    iSenne

    (@isenne)

    Thanks Trollhunter. Your fix worked. Now we wait for everyone to install Chrome 34 ??

    Trollhunter

    (@trollhunter)

    No problem! Glad to help!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Text not appearing in Chrome update’ is closed to new replies.