View Single Post
Old 10-02-2019, 05:25 PM   #35
marshap
Enthusiast
marshap began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Apr 2012
Device: Libra 2
Quote:
Originally Posted by Semwize View Post
try

Spoiler:
Code:
Custom font sizes:
  - Enabled: no
  - Description: |
      Changes the range of sizes on the font size slider so that there are more of
      the small sizes and fewer of the large sizes.
      With this patch enabled you will not be able to select the very large font
      sizes, but will be able to make finer adjustment to the smaller sizes.
    # Font sizes depend on the device's screen resolution. Unpatched, the sizes
    # increase in steps of 1 from the smallest size up to size 22, then in steps
    # of 2 up to size 50, then in steps of 4 up to the largest size:
    #
    #  AuraOne/Forma: 18px - 194px (55 sizes)
    #  GloHD/ClaraHD: 14px - 150px (48 sizes)
    #  AuraHD/H2O:    12px - 150px (50 sizes)
    #  Glo/Aura:      12px - 122px (43 sizes)
    #  Touch/Mini:    12px - 90px  (35 sizes)
    #
    # The example replacement values in this patch result in the following ranges,
    # with increases in steps of 1 from the smallest size up to size 44, then
    # steps of 2 up to size 68, then steps of 4 up to the largest size:
    #
    #  AuraOne/Forma: 18px - 132px (55 sizes)
    #  GloHD/ClaraHD: 14px - 108px (53 sizes)
    #  AuraHD/H2O:    12px - 108px (55 sizes)
    #  Glo/Aura:      12px - 88px (50 sizes)
    #  Touch/Mini:    12px - 80px (48 sizes)
    #
    # Start with this font size: (AuraOne/Forma, GloHD/ClaraHD, Others)
  - ReplaceInt: {Offset: 0x90D66C, Find: 18, Replace: 18}
  - ReplaceInt: {Offset: 0x90D518, Find: 14, Replace: 14}
  - ReplaceInt: {Offset: 0x90D654, Find: 12, Replace: 12}
    #
  - ReplaceInt: {Offset: 0x90D540, Find: 21, Replace: 43} # Add font sizes in increments of 1 until this size exceeded}
  - ReplaceInt: {Offset: 0x90D546, Find: 22, Replace: 44} # Continue from this font size}
  - ReplaceInt: {Offset: 0x90D556, Find: 49, Replace: 67} # Add font sizes in increments of 2 until this size exceeded}
  - ReplaceInt: {Offset: 0x90D560, Find: 50, Replace: 68} # Continue from this font size}
    #
    # Add font sizes in increments of 4 until this size exceeded:
    # (AuraOne/Forma, AuraHD/H2O/GloHD/ClaraHD, Glo/Aura, Touch/Mini)
  - ReplaceInt: {Offset: 0x90D670, Find: 195, Replace: 132}
  - ReplaceInt: {Offset: 0x90D528, Find: 150, Replace: 108}
  - ReplaceInt: {Offset: 0x90D68E, Find: 122, Replace: 88}
  - ReplaceInt: {Offset: 0x90D68A, Find: 90,  Replace: 80}
Semwize, I think you did it! At least for an H2O2 it produces the KoboRoot file. I haven't yet fully tried it on the H2O2 but I expect it will work great. Thank you.
marshap is offline   Reply With Quote