Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 自定义web字体提供程序_Javascript_Css_Webfont Loader - Fatal编程技术网

Javascript 自定义web字体提供程序

Javascript 自定义web字体提供程序,javascript,css,webfont-loader,Javascript,Css,Webfont Loader,我想在我自己的服务器上使用google的web字体加载器和我自己的自定义字体 我对我自己的网络字体提供商有点困惑,如谷歌自己的文档所述: In addition to the google, typekit, ascender and monotype options, there is also a custom module that can load a stylesheet from any web-font provider. WebFontConfig = { custom:

我想在我自己的服务器上使用google的web字体加载器和我自己的自定义字体

我对我自己的网络字体提供商有点困惑,如谷歌自己的文档所述:

In addition to the google, typekit, ascender and monotype options, 
there is also a custom module that can load a stylesheet
from any web-font provider.

WebFontConfig = {
  custom: { families: ['OneFont', 'AnotherFont'],
    urls: [ 'http://myotherwebfontprovider.com/stylesheet1.css',
      'http://yetanotherwebfontprovider.com/stylesheet2.css' ] }
};

为了使用这个库,我的外部css应该包含哪些内容?

看看@font-face工具包,像font squirrel这样的地方是一个很好的起点。您可以将各种文件格式(如woff、svg等)保存到fonts文件夹中,将@font face kit提供的css添加到您自己的样式表中,然后将其与其他css一起在您的头脑中调用,只要您阅读了网站上的文档,它就会有意义,任何进一步的帮助都可以随时询问。

。。。我想是字体的定义吧