PDA

View Full Version : @font-face cant link locally...


nubdev
10-08-2010, 09:48 PM
Hi Guys,

No matter what I do I can't seem to use @font-face to locally link a truetype font to my site in Dreamweaver no matter what I do, however if I use an url direct online link to the font it works fine.

This code does not work:

@font-face {
font-family:fancyfont;
src: url(../fonts/fancyfont.ttf);
}

body {
font-family:fancyfont;
}

I have even tried it with the declaration of "local" with no luck and tried various combinations to define where it is locally. The font is located in my root site folder inside of a folder called "fonts".

Can anyone see what I'm doing wrong... or is this a problem with Dreamweaver and @font-face?

Any help appreciated...

Nubdev.

Corrosive
10-08-2010, 10:02 PM
I don't think dw supports it.

nubdev
10-08-2010, 10:12 PM
Thanks Corrosive, I appreciate your swift reply.