Can I disable my local font in chrome?

前端 未结 2 761
长发绾君心
长发绾君心 2021-02-03 10:32

I work on a system who always bug with the google font load, but i can\'t see when the font is not loaded because I have all these font in local (for Photoshop) so the font look

2条回答
  •  隐瞒了意图╮
    2021-02-03 10:38

    Rather than disabling the fonts on your side of things, why not use the font API in Chrome or Opera and have run through all the fonts that have been specified as follows?

    document.fonts.ready.then(function(set) {
      // Log that the fonts are loaded
      console.log(set);
      var t;
      for(var t of set.entries()) {
        console.log(t); 
      }
    });
    

    The FontFaceSet will tell you if the font has been loaded or not.

提交回复
热议问题