View Single Post
Old 12-15-2009, 06:58 PM   #195
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: 79,949
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Ozric View Post
Hi,

I have a PRS-300. I followed the instructions outlined in post #18, and I'm even trying out the same font. When I exported my ePubs in Calibre and put them on my Reader, the new font worked for most of my books, but not all.

After digging around this thread some more, it sounded like I needed to use Sigil to manually edit the style section of each ePub that failed to use the new font. I replaced every "font-family" reference I could find, which made my books display Fontin in both Sigil and Calibre's internal viewer (I've installed the font on my PC), so I thought I did things properly.

But when I put these ePubs on my Reader, they still don't use Fontin. I've tried entering different permutations of Fontin for "font family:"

"Fontin"
Fontin
"Fontin", serif

But none of them work. Any ideas what I could be doing wrong?
This is what I put in every ePub I convert using Calibre at the beginning of the CSS.

Code:
@font-face {
  font-family: "Fontin";
  font-weight: normal;
  font-style: normal;
  src: url(res:///Data/fonts/Fontin-Regular.ttf);
}
@font-face {
  font-family: "Fontin";
  font-weight: bold;
  font-style: normal;
  src: url(res:///Data/fonts/Fontin-Bold.ttf);
}
@font-face {
  font-family: "Fontin";
  font-weight: normal;
  font-style: italic;
  src: url(res:///Data/fonts/Fontin-Italic.ttf);
}
@font-face {
  font-family: "Fontin_Sans";
  font-weight: normal;
  font-style: normal;
  src: url(res:///Data/fonts/Fontin_Sans_R_45b.otf);
}
@font-face {
  font-family: "Fontin_Sans";
  font-weight: bold;
  font-style: normal;
  src: url(res:///Data/fonts/Fontin_Sans_B_45b.otf);
}
@font-face {
  font-family: "Fontin_Sans";
  font-weight: normal;
  font-style: italic;
  src: url(res:///Data/fonts/Fontin_Sans_I_45b.otf);
}
@font-face {
  font-family: "Fontin_Sans" ;
  font-weight: bold ;
  font-style: italic ;
  src: url(res:///Data/fonts/Fontin_Sans_BI_45b.otf) ;
}
body {
  font-family: "Fontin", serif;
  widows: 0;
  orphans: 0
}
Not every case will it work as is to display the font. Sometimes you need to look at the html code to see what styles are used and ad the specific font family you want to the style(s) used.
JSWolf is online now   Reply With Quote