Thread: PRS-350 Changing Fonts in PRS+
View Single Post
Old 11-04-2011, 08:49 AM   #17
spacebrew
Enthusiast
spacebrew has much to be proud ofspacebrew has much to be proud ofspacebrew has much to be proud ofspacebrew has much to be proud ofspacebrew has much to be proud ofspacebrew has much to be proud ofspacebrew has much to be proud ofspacebrew has much to be proud ofspacebrew has much to be proud ofspacebrew has much to be proud ofspacebrew has much to be proud of
 
spacebrew's Avatar
 
Posts: 41
Karma: 27540
Join Date: Sep 2011
Location: North Dallas
Device: PRS-T1, PRS-350, Droid X2
I'll just post my whole CSS so you can check it out. The very bottom entry is the one I added that made it work though.

Code:
@font-face {
 font-family: "Nimbus";
 font-weight: normal;
 font-style: normal;
 src: url(res:///Data/fonts/Nimbus.ttf);
 }

 @font-face {
 font-family: "Nimbus";
 font-weight: normal;
 font-style: italic;
 src: url(res:///Data/fonts/Nimbus_I.ttf);
 }

 body {
 font-family: "Nimbus"; 
 } 

 p { 
 font-size: 1.0em !important;
 text-align: justify !important;
 line-height: 130% !important;
 text-indent: 1.5em !important;
 margin-top: 0.1em !important; 
 margin-bottom: 0.1em !important; 
 }

 html { 
 font-family: Nimbus !important;
 }

 .mainBody {
 font-family: Nimbus !important;
 }

 .calibre {
 font-family: Nimbus !important;
 }
 
 .epub {
 font-family: Nimbus !important;
 }

I might also add that some books just don't change with it though. A couple of them, I've had to go into the embedded css and remove the font-family lines so it will use the default. You might try that, and even remove the fonts folder from the epub file.

Last edited by spacebrew; 11-04-2011 at 08:52 AM. Reason: wrong tag
spacebrew is offline   Reply With Quote