View Single Post
Old 06-17-2009, 05:38 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,061
Karma: 147983159
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@font-face {
..font-family: "Fontin";
..font-weight: normal;
..font-style: normal;
..src: url(fonts/Fontin-Regular.ttf)
}
@font-face {
..font-family: "Fontin";
..font-weight: bold;
..font-style: normal;
..src: url(fonts/Fontin-Bold.ttf)
}
@font-face {
..font-family: "Fontin";
..font-weight: normal;
..font-style: italic;
..src: url(fonts/Fontin-Italic.ttf)
}

That is the CSS code to specify the fonts. Now to embed the fonts, create a directory called fonts in the same directory that has the CSS file.

Now to use the font, put in...

body {
..font-family: "Fontin", serif
}

and anyplace else it needs to go depending on the CSS.
JSWolf is offline   Reply With Quote