View Single Post
Old 04-18-2012, 11:32 PM   #11
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,449
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by PatNY View Post
So here's a question I have for the developers of Calibre: If a font family is specified in an epub's CSS, but the font files themselves are not in the epub, why won't the Calibre reader default to the font specified in the reader's settings? I have no idea what font it's using now in these instances, but it's not the one I chose in the settings for Calibre's reader. For example, I set it to "Georgia" for both serif and non-serif fonts, and chose "serif" to be the Standard font. But the books with this issue will show all non-serif fonts. It looks like some sort of basic Windows default font, which I'm guessing is why special characters such as fractions and accents won't display. Can this behavior be changed?
The reader uses a font matching algorithm to find the "closest" match to the font specified in the CSS. On windows that algorithm sucks. Unfortunately, there is no way to turn it off as it's a toolkit level thing, short of patching Qt. Which is too much work.
kovidgoyal is offline   Reply With Quote