bell notificationshomepageloginedit profileclubsdmBox

10.02% popularity   0 Reactions

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?


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (2)

Login to follow story

More posts by @Courtney

2 Comments

Sorted by latest first Latest Oldest Best

 

@Para

10% popularity   0 Reactions

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.


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

10% popularity   0 Reactions

You are best served to ask this in the Calibre Support forum on MobileRead.com. Calibre author Kovid Goyal is an active participant. See 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. :-) )


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

 

Back to top