View Single Post
Old 06-12-2019, 03:39 AM   #243
mathil
Evangelist
mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.mathil ought to be getting tired of karma fortunes by now.
 
Posts: 439
Karma: 287725
Join Date: Sep 2014
Location: Europe
Device: Kobo Aura H2O/Glo HD/Libra 2, Kindle PW3/PW5
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...
mathil is offline   Reply With Quote