Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font not showing in Chrome #112

Open
TiagoFuelber opened this issue Nov 28, 2017 · 1 comment
Open

Font not showing in Chrome #112

TiagoFuelber opened this issue Nov 28, 2017 · 1 comment

Comments

@TiagoFuelber
Copy link

TiagoFuelber commented Nov 28, 2017

I'm having some trouble using a font in Chrome.
I've tested in IE11, Firefox and Edge and all of them are showing my font.

When I inspect network panel I noticed that sprite.svg image is like empty or transparent.

image

I'm newbie and have no idea what may be the problem. I searched Stackoverflow and the web with no success.

This is my gulp task (very simple):

 const svgSprite 	= require("gulp-svg-sprites");

gulp.task('sprites', function () {
	return gulp.src('../icons/*.svg')
		.pipe(svgSprite({
			cssFile: '../css/sprite.css',
			svgPath: '../../fonts/svg/sprite.svg'
		}))
		.pipe(gulp.dest("../fonts"));
});
@luiswill
Copy link

Have you tried including another .svg icon ?
I had the same problem with the default icon close.svg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants