2
Post your fonts to the server. Example raleway-bold.ttf
CSS
@font-face {
font-family: ralewayExtralight;
src: url(raleway-extralight.ttf);
}
@font-face {
font-family: ralewayBold;
src: url(raleway-bold.ttf);
}
.Extralight {
font-family: ralewayExtralight;
}
.Bold {
font-family: ralewayBold;
}
HTML
<p class="Extralight">Estilo de font importada: raleway-extralight.ttf</p>
<p class="Bold">Estilo de font importada: raleway-bold.ttf</p>
Appearance in browsers:
Google Chrome:
Firefox:
Opera:
Safari:
Internet Explorer:
If you are the one listed above, you can find here: https://fonts.google.com/specimen/Raleway - Desktop-ready TTF is not necessarily the most suitable or efficient format for CSS. And if you are using a source that is not licensed for free use, remember to take the appropriate steps to license correctly.
– Bacco
TTF fonts don’t work in IE or Safari.
– Sam
@Bacco can put yours as the answer, which worked better. So mark as the right answer. Thank you.
– Ramos
@Branches the solution is already in the closing link above, but your question will serve as an index to help other people searching for similar keywords. I’m glad it worked out, any doubt opens a new question or comment.
– Bacco
Well, by your choice, I think the question should be
Onde acho essas fontes?
and notComo posso utilizar estas fontes em meu CSS ou HTML?
– user60252