View Single Post
Old 06-12-2019, 03:44 AM   #244
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,808
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by mathil View Post
Hi,
is it possible to officially include the 'Set font scale factor' patch that GeoffR created in this thread in kobopatch? I mean the one that works on both kepubs and epubs, not just on epubs:

Code:
Set font scale factor:
  - Enabled: yes
  - Description: |
      This patch sets the font scale factor for ePub and KePub readers.
  # font scale factor is (current font size) / (X+32)
  # original value X=14, so (current font size) / 46 is original scale factor,
  # e.g. selecting font size 46 from the slider gives scale factor 1.0
  # allowed replacement values for X: 0-15 (smaller X --> larger scale factor)
  # ePub:
  - ReplaceInt: {Offset: 0x4A6EBA, Find: 14, Replace: 14}
  # KePub:
  - ReplaceInt: {Offset: 0xA2A5F0, Find: 14, Replace: 14}
I've already added it manually to my list of patches and I've been finding it very useful with kepubs: it helps me in finding my optimal font-size for reading across books without having to change the book's CSS manually. I don't know if it would be too difficult to maintain though...
It wouldn't be too hard to maintain (it would add about 15 seconds to the time to update the patches), but it's up to GeoffR if he wants to add the patch (as it's his patch).

GeoffR recently added this patch, so you might want to see if it fits your needs.

Last edited by geek1011; 06-12-2019 at 10:44 AM.
geek1011 is offline   Reply With Quote