how to use font-faces in css file within spring 3

Posted by miguel.angel on Stack Overflow See other posts from Stack Overflow or by miguel.angel
Published on 2012-07-26T00:04:34Z Indexed on 2013/07/01 23:05 UTC
Read the original article Hit count: 273

Filed under:
|
|

I'm trying to use font-faces inside a style.css file. I have put my style font .ttf file into resources with Spring 3. When use font-faces i need to put the path to the .ttf file like this:

@font-face{
       font-family: NosiferCaps-Regular;
       src: url('../fonts/1942/1942.ttf');
}

.myClass{
     font:39px/1.2 NosiferCaps-Regular, verdana ;
     text-shadow:2px 2px 9px gray;
}

So, how do I refer to "src: url('../fonts/1942/1942.ttf')" inside a style.css file with Spring?

© Stack Overflow or respective owner

Related posts about css

Related posts about spring-mvc