我可以禁用我的本地字体铬? [英] Can I disable my local font in chrome?

查看:185
本文介绍了我可以禁用我的本地字体铬?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的系统总是与谷歌字体加载错误,但我不能看到什么时候字体没有加载,因为我有所有这些字体在本地(为Photoshop),所以字体看起来像我的电脑。

所以,我想禁用所有这些字体,所以我可以很快看到,如果谷歌字体正确加载或没有。



您认为这是可能的吗?

谢谢
$ b $ PS:对不起,我的英文,我是法文。 ,为什么不在Chrome或Opera中使用字体API ,并且已经全部运行(b)b
$ b pre $ document.fonts.ready.then(function(set){
//记录加载的字体
console.log(set);
var t;
(set.entries()的var t){
c onsole.log(T);
}
});

FontFaceSet 会告诉你字体已被加载或没有。


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.

解决方案

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.

这篇关于我可以禁用我的本地字体铬?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆