View Single Post
Old 03-25-2024, 06:05 PM   #6
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 repilo View Post
Thanks for the answers. I would have liked, using kepub, to be able to change the general font when I get tired of one and want to try another, but always keeping the captions with a sans serif font.
Another example would be a book about ancient Rome, with chapter titles and drop caps set with some ancient font (which I don't want to change) and the general text with a serif that I would be able to change when I feel like it.
That would be nice, Kobo, if you're listening.
Kobo probably won't change their default override CSS for kepubs because it would upset as many users as it would please.

As soon as you choose anything other than 'Publisher Default' from the [Aa] menu then this sledgehammer override CSS is applied to your kepub:
Code:
* { font-family: %1 !important;}
where your selection from the font menu replaces the %1 placeholder. It's not possible to be more heavy-handed than this.

If you want a lighter touch with the override CSS you have 2 choices:
  1. Use the patch named Un-Force user font-family in KePubs in the kobopatch utility where you can patch your Kobo's firmware to use one of the following less severe options rather than the one above:
    Code:
    div,p{font-family:%1!important; }
    body,p{font-family:%1!important;}
    body{font-family:%1 !important; }
  2. Use epub instead of kepub, where the override will be at the body, p levels, i.e. like the middle kobopatch option above

@Sirtel, I don't know why the patch isn't working for you, it works fine for me. If you want to pursue it, feel free to PM me with a link to a book it doesn't work for.
jackie_w is offline   Reply With Quote