javascript - Loading Google Web Fonts using require.js font plugin -


i'm using https://github.com/millermedeiros/requirejs-plugins load google font , works fine basic font.

require.config({   paths : {     font: 'lib/require/font',   } });  define([   'font!google,families:[roboto]'   ], function(){     //all dependencies loaded   } ); 

the above fine, if try roboto:400,500,700,900, won't work load bolder fonts.

define(['backbone','app-init','font!google,families:[yanone kaffeesatz:700]'],    function(backbone, appinit,font) {       appinit.initialize();    } ); 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -