View Single Post
Old 03-26-2014, 04:01 AM   #12
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by st_albert View Post

Next, I've been playing with the files you posted, and first of all, if I convert the .odt file using the stand-alone writer2latex java program (the patch for LO didn't work for me), I don't get any embedded fonts at all. Maybe due to the fact that I don't have those fonts on my system, or due to the specific configuration I have created for writer2latex. (in general we do not embed fonts, so as to simplify our legal obligations.) So no joy there.
Thanks for all your infos.

The fonts are embedded not on the odt file (which one could do with LibreOffice) but by writer2xhtml which inserts both fonts and an external CSS stylesheet containing among others the @font-face declarations (it's named styles.css in the EPUB).

Quote:
Originally Posted by st_albert View Post

However, when I use the calibre ebook editor on your pristine epub, I do notice the fact that the fonts are not properly referenced. I edited not the book.opf file, but the styles.css file, and made the references to the font files match what was the real location of the files (e.g. src: url('../styles/LinLibertine_RI.otf'); and so on.
This pristine EPUB is not considered as finished. As I added an external stylesheet I have some adjustments to do. Also, on the corresponding calibre thread, Kovid Goyal gave me a very easy way to correct the EPUB (easy once you know it, but I had been unable to find it), just by renaming the font file and its path - and without tinkering uselessly with the manifest.

One of the very good things of the calibre Editor is that it has a very sharp eye and gives some more warnings that we did not find previously in Flightcrew and Epubcheck. Good to use.

Last edited by roger64; 03-26-2014 at 05:13 AM.
roger64 is offline   Reply With Quote