Hi,
i'am using cmsms 1.2.4 and want to add my own TrueType font in the stylesheet. I have tried the following syntax but it doesn't work.
@font-face {
src:url("uploads/font.ttf");
fontFamily: myFont;
}
What is wrong?
Any idea would be appreciated.
How to add my own font?
Re: How to add my own font?
Try:
@font-face {
font-family: "myFont";
src: url(http://yourwebsite.com/uploads/font.ttf) format("truetype");
}
Nullig
@font-face {
font-family: "myFont";
src: url(http://yourwebsite.com/uploads/font.ttf) format("truetype");
}
Nullig
Last edited by Nullig on Tue Apr 29, 2008 8:29 pm, edited 1 time in total.
Re: How to add my own font?
spinne,
W3 states......
If that doesnt work, you might try the full URL instead of the relative URL.
Ronny
W3 states......
so check with the "-" in font-family, also a blank after src:
If that doesnt work, you might try the full URL instead of the relative URL.
Ronny
Re: How to add my own font?
I have tried all your ideas but nothing worked for me. Then I made a simple index.html with the following content:
Titel
@font-face { font-family:myFont; src:url(webdings.ttf) format(TrueType); }
Test Font
This doesn't work, too. So I don't think this is a problem with cmsms but I don't know what it is.
Titel
@font-face { font-family:myFont; src:url(webdings.ttf) format(TrueType); }
Test Font
This doesn't work, too. So I don't think this is a problem with cmsms but I don't know what it is.