View Single Post
Old 03-06-2011, 12:56 AM   #24
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
Quote:
Originally Posted by CraftyDan View Post
Few epubs specify a font in their CSS, so the default takes over. Some DO specify the font size(s) . . . I haven't figured how to clean that up in Calibre yet.
The only reason I haven't considered using custom firmware is because I've actually run into quite a few books that call for their own special fonts, which usually brings up something like Times New Roman, so if I have to edit .css files anyway, I didn't see the point of it.

But you should be able to fix those books by editing the .css file through Calibre. Right click the title in the Calibre Library window. Select Tweak ePub, then click on Explode ePub. That will bring up an explorer window with all the various files included in the book. Open the file that ends in .css in whatever editor you prefer (I prefer PSPad, have used it for years and love it, and it's free). Search for any reference to a font type, usually listed as "font-family" and change the font they specify to the font you want instead. It might be listed in quite a few locations within the file, search for them all and replace it. Such as:

Code:
In file named stylesheet1.css, find:
font-family: "Times New Roman";

I changed that line to read:
font-family: "LexiaDaMa";
The file might be named a bit differently but it will always end in .css.

Save the file with your changes and close PSPad, then click on "Rebuild ePub" from the Calibre small window still open. And you're done. Upload the book to your Sony reader and your correct font will now show.
Ripplinger is offline   Reply With Quote