3

I'm having this strange issue. I'm loading fonts with google font loader.

    var data = {
        active: call_resize,
        fontactive: bum,
        fontinactive: bam,
        custom : {
            families : [ 'League Gothic', 'FontAwesome' ],
            urls : [
                    'http://localhost/wordpress/wp-content/themes-ai1ec/vortex/less/bootstrap/font-awesome.css',
                    'http://localhost/wordpress/wp-content/themes-ai1ec/vortex/less/bootstrap/font-league-gothic.css'
                    ]
        }
    };
    require(
        [ 'http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js' ],
        function(  ) {
            WebFont.load(data);
        } );

Basically the two fonts are loaded correctly but the font loader report the second font as not being loaded correctly while this is not true as you can see from the image.

fonts

this is really tedious because i need to performa an action when all fonts are loaded and now Firefox and chrome are waiting for the failure before calling the "active" handler.

Community
  • 1
  • 1
Nicola Peluchetti
  • 76,206
  • 31
  • 145
  • 192
  • I have the same issue. For me it seems that the font that fails is the one that i haven't declared in the CSS yet. – Johan B Apr 25 '13 at 13:41

0 Answers0