View Single Post
Old 10-03-2019, 06:52 AM   #42
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
To fix the two patches for adjust the font scale so ePub and kepub are the same heres what to do...

1. Set ePub uniform font scale: to yes
2. Set Set font scale factor: to yes
3. In Set font scale factor: set the ePub replace value to 4 and set the KePub replace value to 14.
Code:
Set font scale factor:
  - Enabled: yes
  - Description: |
      This patch sets the font scale factor for ePub and KePub readers.
      See also `ePub uniform font scale` and `Custom font sizes` patches.
  # Font scale factor is calculated as (font size slider) / (X+32)
  # Original value X=14, so original scale factor is (font size slider) / 46.
  # Allowed replacement values for X: 0-15 (smaller X --> larger scale factor)
  - ReplaceInt: {Offset: 0x52767A, Find: 14, Replace: 4} # ePub
  - ReplaceInt: {Offset: 0xAE037C, Find: 14, Replace: 4} # KePub
Values of 4 and 4 keeps the scale matching what's used with ePub. So that will improve kepub as well and it will allow kepub to have some larger font sizes should that be needed.

If you also use the patch KePub stylesheet additions:, do not use Example 4: Make KePub font sizes match ePub font sizes: ePubs render with 1.5 times the font size of KePubs by default. With this enabled they match as it will throw off the font sizes.

@Geek1011, can you please change the scale values from 8 to 4? Thanks.

Last edited by JSWolf; 10-06-2019 at 03:31 PM.
JSWolf is offline   Reply With Quote