@font-face { font-family: "newFont"; src: url( newFont.ttf ); } h1 { font-family: "newFont"; }
NOTE: Make sure that there's no spacing between "url" and the open bracket, such as this:
src: url ( newFont.ttf );
It'll cause the font not being able to get loaded.
No comments:
Post a Comment