csosa
October 23, 2015, 10:49pm
1
Hi I have made an custom icon set but
the font is not showing: Page
I have the fonts in my font folder and the
@font-face css already in there.
@font-face {
font-family: 'icomoon';
src:url('impactograph.com/fonts/icomoon.eot');
src:url('impactograph.com/fonts/icomoon.eot') format('embedded-opentype'),
url('impactograph.com/fonts/icomoon.ttf') format('truetype'),
url('impactograph.com/fonts/icomoon.woff') format('woff'),
url('impactograph.com/fonts/icomoon.svg') format('svg');
font-weight: normal;
font-style: normal;
}
Hi there csosa,
in your CSS you have this…
.icon-shocklabelsicon-01:before {
content: "\e904";
}
Change it to…
.icon-shocklabelsicon-01:before {
font-family: 'icomoon';
content: "\e904";
}
coothead
Your font files are returning 404. Check the file paths again.
You have this
@font-face {
font-family: 'icomoon';
src:url('fonts/icomoon.eot');
src:url('fonts/icomoon.eot') format('embedded-opentype'),
url('fonts/icomoon.ttf') format('truetype'),
url('fonts/icomoon.woff') format('woff'),
url('fonts/icomoon.svg') format('svg');
font-weight: normal;
font-style: normal;
}
Which is calling files here…
And .svg, .woff, etc etc etc…All are 404.
csosa:
hmm that did not work
Well, this is what I see/saw when applying the amended code…
…in Firefox.
Of course, other browsers may require the fonts
that “RyanReese” has already indicated.
coothead
1 Like
csosa
October 26, 2015, 4:49pm
7
it worked when I put it in my Style folder but I guess that is
by default how can I redirect it to go to my fonts folder?
should I say?
http://impactograph.com/fonts/icomoon.eot
but then that would not work on my local host right?
Add a / before your “fonts”.
That will tell it to look at the root directory.
I don’t develop locally, so I don’t know.
I guess, if you’re keeping the same structure, you could do something like this…
@font-face {
font-family: 'icomoon';
src:url('../fonts/icomoon.eot');
src:url('../fonts/icomoon.eot') format('embedded-opentype'),
url('../fonts/icomoon.ttf') format('truetype'),
url('../fonts/icomoon.woff') format('woff'),
url('../fonts/icomoon.svg') format('svg');
font-weight: normal;
font-style: normal;
}
1 Like
system
Closed
January 25, 2016, 11:54pm
9
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.