Thread: Embedded fonts?
View Single Post
Old 12-28-2010, 05:57 PM   #59
Psyke
Evangelist
Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.Psyke ought to be getting tired of karma fortunes by now.
 
Posts: 482
Karma: 534340
Join Date: Oct 2010
Location: Ottawa/Canada
Device: Kobo Wi-Fi - Kobo Touch - GNex - N7
Quote:
Originally Posted by elmago79 View Post
Here's my guess. For the Kobo to be able to switch from serif to non-serif, it uses a css sheet that is located on /.kobo/adobe/pxf/userStyle.css, which says:

body {
font: serif;

}

Since this usersheet overrides the css in the book, if the font is declared the body, it is ignored. That being said, the existence of this Style sheet could be used for all kinds of neat stuff, including changing the fonts in all of the books if you place your fonts somewhere in the Kobo memory. I haven't tried any of these, but someone else might look into it.

My guess, however, is that anytime you change to serif or non-serif from the menu, this css sheet is rewritten. Or maybe it get's rewirtten at startup.
I've seen pholy mention the same thing in another post in another part of the site, and it's a very logical assumption. What it looks like is that Kobo needs to put an if/else rule for when a body tag is defined with a font within an epub. And no Jon, I still don't think this is a bug, but an oversight
Psyke is offline   Reply With Quote