View Single Post
Old 09-02-2011, 09:45 PM   #101
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,980
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by rashkae View Post
This is not a bug, but a feature.

Overwriting the default body attributes is the trick that allows Kobo to use User selectable fonts. (You'll note that you can't do that on the Sony devices.) You can work around it very easily by putting the font-family attribute in the class you assign for the body, rather than right in the body attribute.

(By the way, Calibre does this for you if you do a a conversion of the sample you provided.)
No, it's a bug. People do not program ePub to fit the Kobo. So what happens is that the embedded font(s) either do not display or only partially display. Publishers who do embed fonts (most of the time) put the font-family in the body and this means what's embedded doesn't display. I know you can get embedded fonts to work. But that's a kludge and not correct to have to do instead of using the body CSS entry. If Kobo cannot come up with a better way of doing things, then they should not do them when it breaks things that never should be broken in the first place.


Calibre takes the @font in the CSS and botches it by putting it in every XML. That's not good at all. Using Calibre to go ePub > ePub can cause it's own set of issues. Not recommended at all.
JSWolf is offline   Reply With Quote