I have a font I want to use with my links. Somehow it doesn’t work.
@font-face {
font-family: HelveticaNeueLight;
src: local('fonts/HelveticaNeueLight.ttf');
}
My font path is: wp-content/themes/mytheme/fonts/HelveticaNeueLight.ttf
, and I used it like this:
.jplnav li a {
font-family: HelveticaNeueLight;
}
Browser: Chrome
Is there some kind of special code need to make @font-face work?
Depending on your browser and platform you need to specify the font in different formats.
See this example:
If you just have the font in
.ttf
format and need the others, you can use the FontSquirrel’s WebFont Generator to create your own @font-face kit.