View Single Post
Old 01-13-2012, 03:18 PM   #3295
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,254
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Analogus View Post
I love Caecilia as default-reading-font. Sometimes my custom CSS-files dont work with specific EPUBS (which don't have embedded fonts). Of course I could change the internal CSS-file of the book. But wouldn't it be elegant when my own default font would be used instead of this (hidden?) font?
When you have a misbehaving epub, look in the epub css and find out why it's not working. Once you know what the problem is you can sometimes add extra code to your Caecilia custom css which will avoid the problem in future.

For example, if a lot of your epubs have been converted from an MSWord-created RTF or an old LIT (which are also often sourced from MSWord) then it is quite possible that your epub is full of statements like font-family: "Times New Roman". Unless you take evasive action in your custom css all this text will display as Sony default.

I don't know what you currently have but something like
Code:
@font-face { font-family: "Times New Roman", "Caecilia", serif; font-weight: normal; font-style: normal; src: url(res:///Data/fonts/Caecilia_LT_67_Cond_Medium.ttf);}
...and similar for the other 3 @font-faces
may handle a few extra epubs without needing to edit the epub css.

If the problem is an epub which already contains a set of fully-embedded fonts (e.g. Charis in many DRM'd epubs) then the Calibre 'Modify Epub' plugin has an option to remove them for you.
jackie_w is offline   Reply With Quote