View Single Post
Old 05-23-2019, 07:44 PM   #11
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by lumpynose View Post
It's an epub3. I'm using the Kobo Touch Extended plugin. On the My Books page this book is listed as KOBO EPUB.
As far as I know epub3 will work the same as epub2 as far as font-family is concerned. If you're using the KoboTouchExtended plugin I assume your books are kepub by the time they land on the Kobo. The other plugins are not relevant for this particular issue.

Quote:
Originally Posted by lumpynose View Post
None of those work for me; when I choose Caecilia everything is in that font.
I've just had a proper look at the latest firmware and yes, you're right. The kepub default override CSS for font-family is:
Code:
* { font-family: %1 !important; }
That's about aggressive as you can get, it's going to zap everything. Sorry for the bum steer.

In comparison the plain epub default override for font-family is:
Code:
body, p { font-family: -ua-default !important; }
so embedded fonts in <h1>, <h2> etc, <div> and <span> should survive.

I've been patching the overrides on my own Kobos for years to be the same for epub and kepub using only
Code:
body {font-family: ...}
But that might not suit everyone.

Last edited by jackie_w; 05-23-2019 at 08:25 PM.
jackie_w is offline   Reply With Quote