TransWikia.com

Calibre changes font coverting AZW book to EPUB

Ebooks Asked by Llaves on October 4, 2020

I’m trying to convert an azw book to epub. Calibre completes the conversion with no problem, but the font has changed (to something ugly). I know I can use the look and feel settings to fix this, but I’m curious why this is happening. When I look inside the resulting epub file, I find a number of .ttf files with names like 00001.ttf in the fonts folder, but when I try to open one, I get a message “invalid font file”. The CSS refers to the font E B Garamond, which I don’t have (though I do have Garamond).

I can use the look and feel settings to substitute the Garamond font, but why are invalid font files be written? Why does the CSS name a font not present in the file?

2 Answers

You are best served to ask this in the Calibre Support forum on MobileRead.com. Calibre author Kovid Goyal is an active participant. See https://www.mobileread.com/forums/forumdisplay.php?f=166

MobileRead is a privately funded site with free signup. It's the single best site I am aware of for all things eBook.

(Disclaimer: I am on staff and a moderator, thus biased. :-) )

Answered by DMcCunney on October 4, 2020

The original fonts are not embedded. If you don't have the specified font installed (E B Garamond) then your device will pick a default or replacement font to display.

why are invalid font files be written?

That's a question for Kovid, but AZW to epub doesn't seem like a common-use scenario for Calibre. Where'd you get the AZW file?

Why does the CSS name a font not present in the file?

It's a common mistake in ebook design. People want to style their books with unique fonts, but you have to own the copyright to embed the font. So at some point - probably when it was converted to AZW by Amazon - the embedded fonts got stripped out.

In terms of what to do, I would use Calibre to edit the epub, delete all the .ttf files, and just do a find and replace-all to change or delete the font-face in the stylesheet.

Answered by b_q on October 4, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP