View Single Post
Old 01-05-2011, 10:37 AM   #53
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,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by ShaneR View Post
I just want to confirm something...The edits made to the userstyle css will only affect those book which do not have an embedded font, correct?
I believe this to be true. I'm sure someone will correct me if I'm wrong. I usually remove embedded fonts from my epubs.

Quote:
Originally Posted by ShaneR View Post
There are a few of my books where fonts did not change, so upon "exploding" the epub in calibre, there appears to a font embedded in the file along with the proper references to it in the file's css.

Assuming that's the case, is there a way to make all epubs default to a certain font regardless of an embedded font or not?
Assuming the epub does not have DRM, these are the 4 steps I've used to surgically remove embedded fonts. You need to explode the epub and
  1. Examine the epub's CSS file for statements similar to
    Code:
    font-family:embedded_font_name;
    and remove them.
  2. Remove all the @font-face statements. Depending how the epub was created these may be (best case) in the epub's CSS file or (worst case) at the top of each and every one of the epub's HTML files.
  3. Delete the actual font files (and directory) from the epub.
  4. Edit the epub's .opf file and remove any references to the font filenames in the <manifest> section.

It's possible you may get away with just doing steps 1 and probably 2, but I always do all 4 steps.

Your customised userStyle.css should then take over.
jackie_w is offline   Reply With Quote