View Single Post
Old 10-12-2009, 09:05 AM   #163
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
You have to use this resource reference inside of a font-face instruction, as in my :

Code:
@font-face {font-family: "Caecilia", serif;font-weight: normal;font-style: normal;src: url(res:///Data/fonts/CaeciliaLTStd-Roman.otf);}
@font-face {font-family: "Caecilia", serif;font-weight: bold;    font-style: normal;src: url(res:///Data/fonts/CaeciliaLTStd-Bold.otf);}
@font-face {font-family: "Caecilia", serif;font-weight: bold;    font-style: italic;   src: url(res:///Data/fonts/CaeciliaLTStd-BoldItalic.otf);}
@font-face {font-family: "Caecilia", serif;font-weight: normal;font-style: italic;   src: url(res:///Data/fonts/CaeciliaLTStd-Italic.otf);}

@font-face {font-family: "FontinSans", sans-serif;font-weight: normal;font-style: normal;src: url(res:///Data/fonts/Fontin_Sans_R_45b.otf);}
@font-face {font-family: "FontinSans", sans-serif;font-weight: bold;font-style: normal;src: url(res:///Data/fonts/Fontin_Sans_B_45b.otf);}
@font-face {font-family: "FontinSans", sans-serif;font-weight: bold;font-style: italic;src: url(res:///Data/fonts/Fontin_Sans_BI_45b.otf);}
@font-face {font-family: "FontinSans", sans-serif;font-weight: normal;font-style: italic;src: url(res:///Data/fonts/Fontin_Sans_I_45b.otf);}
This code forces the use of the Caecilia font for all serif font declarations in the following and inherited CSS, and the use of FontinSans in lieu of all other sans-serif fonts.

Hope this helps,
Dave.
dpierron is offline   Reply With Quote