繁体   English   中英

自定义Web字体提供程序

[英]custom web font provider

我想在自己的服务器上将google的网络字体加载器与自己的自定义字体一起使用。

我对如何按照Google自己的文档中所述配置自己的网络字体提供程序感到困惑:

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工具包,像松鼠这样的地方是一个不错的起点。 您可以将woff,svg等各种文件格式保存到fonts文件夹中,将@font face kit提供的css添加到您自己的样式表中,然后尽快将其与CSS的其余部分一起调用当您阅读网站上的文档时,这将是有道理的,那么您可以随时询问任何进一步的帮助

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM