Is there a way to use custom font saved in fonts directory in our web directory?
I am trying to do something like this
font-family: url('fonts/myfont.ttf');
You might think this is a stupid question, but if there is 开发者_Go百科a way tell me
You have a few options, check out @font-face
, a CSS based solution and cufon
, a JavaScript solution.
I would look at this myself:
http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/
I would look into sIFR:
http://novemberborn.net/sifr3
精彩评论