View Single Post
Old 07-09-2009, 08:51 AM   #16
dpierron
calibre2opds guru
dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.
 
dpierron's Avatar
 
Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
No problem Paul, it's a pleasure helping you !

Assuming you are trying to go along the way of embedding the fonts, you would put all the three fonts in the content/resources folder. Then, you'd edit the CSS file to add references to your fonts as in :

Code:
@font-face {font-family: "LiberationSans";font-weight: normal;font-style: normal;src: url(LiberationSans-Regular.ttf);}
@font-face {font-family: "FontinSans";font-weight: normal;font-style: normal;src: url(Fontin_Sans_R_45b.otf);}
@font-face {font-family: "Droid";font-weight: normal;font-style: normal;src: url(DroidSerif-Regular.ttf);}
And finally, you would specify (in the CSS again) that the font for h1, h2 and p is one of those referenced above ; for example :

Code:
h1 {
    font-family: "Droid", serif;
   }
h2 {
    font-family: "FontinSans", sansserif;
   }
p {
    font-family: "LiberationSans", sansserif;
   }
Does this help ?
David.
dpierron is offline   Reply With Quote