Can I disable my local font in chrome?

2019-03-13 09:34发布

问题:

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 like good on my computer.

So, I would like to disable all these font in chrome so I can see quickly if the google font is correctly load or not.

Do you think it's possible ??

Thank you

PS: Excuse my english, i'm French.

回答1:

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.