我正在使用requirejs-plugins,並試圖加載一些谷歌網頁字體到我的腳本中使用。我發現了幾個例子或多或少模仿那個github頁面上的例子。 例子:Loading Google Web Fonts using require.js font plugin 我也看到了字體插件的源和在我的例子嘗試這樣做,它仍然無法正常工作。 Line 28:
example: font!google,fam
谷歌字體支持loading specific characters of a font: http://fonts.googleapis.com/css?family=Inconsolata&text=Hello
谷歌的字體也支持loading multiple families and styles with one request: http://fonts.googleapis.com/