【发布时间】: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