-2
I’m having trouble with a source on a website I’m developing. The name of the source is Modern No 20, I did her font-face and it’s not working. My code is correct?
@font-face {
font-family: 'modern';
src: url('../fontes/modern-no-20-webfont.eot');
src: url('../fontes/modern-no-20-webfont.eot?#iefix') format('embedded-opentype'),
url('../fontes/modern-no-20-webfont.woff') format('woff'),
url('../fontes/modern-no-20-webfont.ttf') format('truetype'),
url('../fontes/modern-no-20-webfont.svg#modern') format('svg');
font-weight: normal;
font-style: normal;
}
.bannerPTextoL1 {
font-family: "modern";
font-size: 300px;
color: #001f2e;
text-transform: uppercase;
text-align: center;
width: 1920px;
overflow: hidden;
line-height: 300px;
}
Apparently yes, maybe the problem is that
url(...)
. Your font is a directory above in a folder calledfontes
even?– Renan Gomes
It is. In this same directory I have other fonts that work normally.
– Felipe Viero Goulart
Pass the full path to the url for us to test
– Marco Antonio Quintal
full path http://www.musicalabertura.com.br/site/fontes/modern-no-20-webfont.eot
– Felipe Viero Goulart