View Single Post
Old 03-25-2015, 02:05 PM   #1
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Possible bug in eBook conversion - Suggestion for check book

Hi Kovid,

Because of what jbennion posted in the Kobo bug thread and the solution I posted, I think you should check it.

Basically Kobo ACCESS renderer (for kepubs) goes FUBAR when there are missing or bad linked font files in @font-face in css stylesheets.

In the exact case posted there, the book page_styles.css contained:
Code:
@font-face {
    font-family: "Caecilia";
    font-weight: normal;
    font-style: normal;
    src: url(res:///Data/fonts/Caecilia-Roman.otf)
(and italic and bold and both).

Caecilia is used by "calibre_" class, and the book always contains <body class="calibre_"> in each html file. But the ebook doesn't contain any embedded font file itself.

This situation causes havoc in Kobo Readers.

So the possible bug in Calibre would be:
  • page_styles.css is created by Calibre, isn't it? Although I've asked jbennion if he has manually edited the epub file, (he did a MOBI to EPUB conversion), I do think you might check if it were possible that Calibre created those font-face settings with those strange urls without embedding the font files themselves.

And the suggestion for Check Book:
  • As this situation is deadly for Kobos it would be really nice if Check Book informed about missing font files in the used @font-face.
arspr is offline   Reply With Quote