Tuesday, April 9, 2013

Embedding fonts

Simply stick this in your CSS:

@font-face{
 font-family: inkpen;
 src: url(Inkpen2ScriptStd.otf)
}

Change the "font-family:" attribute to what you want the name of the font to be. Change the "src: url()" to the location of the font file on your server. In the case above, it's in the same folder as all my other files. Just make sure that when you use an embedded font, you still specify a full hierarchy of fonts when you set the font for an element.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.