View Single Post
Old 11-07-2010, 10:15 PM   #8
sherman
Addict
sherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animalssherman is kind to children and small, furry animals
 
Posts: 265
Karma: 6566
Join Date: Aug 2008
Location: New Plymouth - 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 10:18 PM.
sherman is offline   Reply With Quote