View Single Post
Old 03-12-2014, 01:06 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,386
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As I said in my previous post, the font names in the font and in the font-face rules do not match. For example:

@font-face {
font-family: LiberationSerif;
font-style: normal;
font-weight: normal;
src: url(../Fonts/LiberationSerif-Regular.ttf);
}

Note the missing space between Liberation and Serif. And then there is the use of family name Dummy for other variants of Liberation Serif. That is what is causing the problem for the viewer. The viewer cannot handle multiple font face rules referring to the same actual font family with different family-names (and this is due to a limitation of Qt, which cannot be helped).

Either delete those two embedded fonts or fix the @fontface rules to use the font-family name "Dummy" which will make the file render fine in the viewer.
kovidgoyal is online now   Reply With Quote