View Single Post
Old 05-30-2019, 08:22 PM   #2
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
I only have a Glo myself, and I fond the font size is usually the same in ePubs as in KePubs, but some have said that the font size is normally 50% larger in ePubs than in KePubs on some other devices.

The X value in the Set Adobe units per inch patch above is originally 144.0 for some devices and 96.0 for others, and 144 is 50% larger than 96, so that might account for it.

If that is the case then maybe Setting the X value to 96.0 for all devices would fix it? I.e. change the patch to:
Code:
Set Adobe units per inch:
  - Enabled: yes
  - Description: |
      This patch sets the value passed to AdobeStyling::setUnitsPerInch(int)
      which only affects the ePub reader.
  # original value is calculated as (scale factor) * X where:
  #   scale factor is as in the previous patch
  #   X = 144.0 for Dragon class devices, X = 96.0 for other devices
  # Other devices (Touch, Glo, etc.):
  - ReplaceBytes: {Offset: 0x4A70C0, FindH: 00 00 C0 42, ReplaceH: 00 00 C0 42}
  # Dragon class devices (AuraHD, H2O, etc.):
  - ReplaceBytes: {Offset: 0x4A70C4, FindH: 00 00 10 43, ReplaceH: 00 00 C0 42}
Edit: From what I can see, the KePub reader uses the same scale for all devices.

Last edited by GeoffR; 05-30-2019 at 11:20 PM.
GeoffR is offline   Reply With Quote