【问题标题】:custom web font provider自定义网络字体提供程序
【发布时间】:2013-02-10 08:30:55
【问题描述】:

我想在我自己的服务器上使用谷歌的网络字体加载器和我自己的自定义字体。

我对 how to configure 我自己的 web-font provider 有点困惑,如 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 应该包含什么?

【问题讨论】:

  • 嗯...我想的字体定义

标签: javascript css webfont-loader


【解决方案1】:

看看@font-face kits,字体松鼠之类的地方是一个不错的起点。您可以将各种文件格式(如 woff、svg 等)保存到字体文件夹中,将 @font face kit 提供的 css 添加到您自己的样式表中,然后尽快将其与其余 CSS 一起调用当您阅读网站上的文档时,它会很有意义,如果您有任何进一步的帮助,请随时询问

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-03-14
    • 1970-01-01
    • 2010-12-12
    • 2021-11-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多