2
0
Fork 0
tcrud/lib/plugin/ui/spa/ui-spa-topcoat-font.js
2017-06-10 16:53:29 +02:00

20 lines
711 B
JavaScript

module.exports = (function () {
var fontPath = 'topcoat-fonts/font/SourceSansPro/';
return function UISpaTopcoatFontPlugin() {
this.configPlugin = function (ctx) {
ctx.key='uiSpaTopcoatFont';
ctx.description='Adds Source Sans Pro fonts.';
};
this.configServer = function(ctx) {
ctx.hostFileCSSFontNodeModule({file: 'SourceSansPro-Light.otf', path: fontPath, fontFamily: 'Source Sans', fontWeight: 200});
ctx.hostFileCSSFontNodeModule({file: 'SourceSansPro-Regular.otf', path: fontPath, fontFamily: 'Source Sans', fontWeight: 400});
ctx.hostFileCSSFontNodeModule({file: 'SourceSansPro-Semibold.otf',path: fontPath, fontFamily: 'Source Sans', fontWeight: 600});
};
};
})();