@font-face problems
Posted
by codedude
on Stack Overflow
See other posts from Stack Overflow
or by codedude
Published on 2010-03-21T22:54:01Z
Indexed on
2010/03/21
23:01 UTC
Read the original article
Hit count: 664
Right now I'm trying desperately to get @font-face
to work in my website. This is the code I am using right now.
@font-face {
font-family: romeral;
src: url(fonts/romeral.otf ) format("opentype");
}
And then....
h1 {
font-size:2.5em;
font-family:romeral;
}
I am using the font Romeral. Here's a link to it: http://www.smashingmagazine.com/2007/02/06/freefont-of-the-week-romeral/
For some reason it just won't work. It won't render the font on the page. I've tried using other fonts like Ripe, and they work. I've made sure I don't have any spelling errors. What I'm wondering is if there is a restriction that some fonts use to stop people from using their fonts with @font-face. Or maybe I've made an obvious mistake in my code.
Thanks in advance.
© Stack Overflow or respective owner