Fonts Google字体加载器报告字体加载失败,即使字体加载正确

Fonts Google字体加载器报告字体加载失败,即使字体加载正确,fonts,webfonts,google-font-api,webfont-loader,Fonts,Webfonts,Google Font Api,Webfont Loader,我有一个奇怪的问题。我正在用谷歌字体加载器加载字体 var data = { active: call_resize, fontactive: bum, fontinactive: bam, custom : { families : [ 'League Gothic', 'FontAwesome' ], urls : [ 'http:/

我有一个奇怪的问题。我正在用谷歌字体加载器加载字体

    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);
        } );
基本上,这两种字体加载正确,但字体加载程序报告第二种字体加载不正确,而从图像中可以看出,这是不正确的


这真的很无聊,因为我需要在加载所有字体时执行一个操作,现在Firefox和chrome正在等待失败,然后再调用“活动”处理程序。

我也有同样的问题。对我来说,失败的字体似乎是我尚未在CSS中声明的字体。