From e2f24bee5de9efd594c4afd38c17b7698abe49d5 Mon Sep 17 00:00:00 2001 From: Leonardo Merlin Date: Thu, 20 Aug 2015 10:29:59 -0300 Subject: [PATCH] Add open-sans fonts --- bower.json | 3 ++- gulp/build.js | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 667b2ee..a4b5094 100644 --- a/bower.json +++ b/bower.json @@ -12,7 +12,8 @@ "animate.css": "~3.3.0", "angular": "~1.4.0", "modernizr": "~2.8.3", - "angular-slugify": "~1.0.1" + "angular-slugify": "~1.0.1", + "open-sans-fontface": "~1.4.2" }, "devDependencies": { "angular-mocks": "~1.4.0" diff --git a/gulp/build.js b/gulp/build.js index 2dddc1b..32807e2 100644 --- a/gulp/build.js +++ b/gulp/build.js @@ -48,6 +48,7 @@ gulp.task('html', ['inject', 'partials'], function () { .pipe(jsFilter.restore()) .pipe(cssFilter) .pipe($.replace('../../bower_components/bootstrap-sass-official/assets/fonts/bootstrap/', '../fonts/')) + .pipe($.replace('../../bower_components/open-sans-fontface/fonts/', '../fonts/')) .pipe($.csso()) .pipe(cssFilter.restore()) .pipe(assets.restore()) @@ -68,7 +69,10 @@ gulp.task('html', ['inject', 'partials'], function () { // Only applies for fonts from bower dependencies // Custom fonts are handled by the "other" task gulp.task('fonts', function () { - return gulp.src($.mainBowerFiles().concat('bower_components/bootstrap-sass-official/assets/fonts/bootstrap/*')) + return gulp.src([ + $.mainBowerFiles().concat('bower_components/bootstrap-sass-official/assets/fonts/bootstrap/*'), + $.mainBowerFiles().concat('bower_components/open-sans-fontface/fonts/*') + ]) .pipe($.filter('**/*.{eot,svg,ttf,woff,woff2}')) .pipe($.flatten()) .pipe(gulp.dest(path.join(conf.paths.dist, '/fonts/'))); -- libgit2 0.21.2