View Single Post
Old 11-07-2010, 11:15 PM   #8
sherman
Addict
sherman can bend spoons with a thought.sherman can bend spoons with a thought.sherman can bend spoons with a thought.sherman can bend spoons with a thought.sherman can bend spoons with a thought.sherman can bend spoons with a thought.sherman can bend spoons with a thought.sherman can bend spoons with a thought.sherman can bend spoons with a thought.sherman can bend spoons with a thought.sherman can bend spoons with a thought.
 
Posts: 279
Karma: 134960
Join Date: Sep 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo
Guys, deleting the css file in an epub is complete overkill if you just want to remove the font.

What you should do is explode the epub using calibre. edit the css file using your favorite text editor (yes, notepad will work, although I wouldn't recommend it) and search for and delete the following...

Any instances of
Code:
@font-face {
some font related styles
}
and
Code:
font-family: font-name(s);
The @font-face rules will generally be grouped together in the CSS, and you can do a simple find/replace using wildcards or regular expressions for the font-family rules.


Then rebuild the epub using calibre and you're done.

Last edited by sherman; 11-07-2010 at 11:18 PM.
sherman is offline   Reply With Quote