View Single Post
Old 03-27-2020, 11:50 PM   #1
candyfloss
Junior Member
candyfloss began at the beginning.
 
Posts: 7
Karma: 48
Join Date: Jan 2011
Device: Nook Glowlight 3
AO3 epub, embedded font removal problem

Hello everyone! I have a problem that googling didn't really yield much help... I primarily use my ereader for organizing my fanfic collection; I use a Nook Glowlight 3 and use Calibre Companion to sync my Calibre library, and I use Archive Of Our Own (AO3)'s epub download feature for most of my fic. It's pretty perfect for my use, except I haven't been able to find a good solution to this: AO3's epub formatter automatically adds in a font-family: serif; to the style classes that format the blocks of text.

I know this forum feels a certain type of way about embedded fonts and I'm no different. So I went about deleting them from the book files like this:
  1. open with Calibre's Book Editor
  2. use a saved search for "font family: serif;" to find and replace with "" (nothing)
  3. Tools > Beautify all files to remove the empty line left from replacing with nothing
  4. save and exit

I went through 18 files before I stopped to check how the progress was looking on my nook and realized that only some had been stripped successfully, others had not. Upon doing a little trial and error the ones that had been successfully stripped were files I had never accessed on CC before; the ones I had accessed previously, whether or not I manually changed the font in my ereader, were not stripped. My theory is that accessing the file in CC generates meta data of some kind that is messing with the font.

So my question is... how do I work around this??? My goal ultimately is to strip these files of embedded fonts so that they load in whatever my ereader's default font is set to. Btw I had also tried the Modify ePub plugin but because it searches for font-face it doesn't pick up the font-family used in these AO3 epub files. I'm still quite the newbie at Calibre so any advice or thoughts are helpful. TIA!
candyfloss is offline   Reply With Quote