View Single Post
Old 01-17-2025, 07:13 AM   #1
Elvys
Member
Elvys began at the beginning.
 
Elvys's Avatar
 
Posts: 17
Karma: 10
Join Date: Sep 2021
Location: Spain
Device: Kobo Sage
Question Custom options on the font size slider

I find the font size slider on Kobo extremely unhelpful, using touch on such a sensitive slider makes no sense too me. Also, font sizes in the hundreds on screens this size seem plain wrong…
I was trying to use the "Custom font sizes" patch in libnickel.so.1.0.0.yaml to limit the options to just five (maybe 10, 12, 14 ,16 and 18), so I can simply touch a specific area of the slider for a precise selection.
However, I’m unsure about the correct values to insert into the patch code.

Could anyone you help?
Thanks!


Code:
  - BaseAddress: "N3FontTypeUtil::fontSizes()"
  # Initial font size:
  - ReplaceInt: {Offset:  378, Find:   8, Replace:   8} # Other devices
  - ReplaceInt: {Offset:  374, Find:  11, Replace:  11} # LibraH2O (storm)
  - ReplaceInt: {Offset:   36, Find:  10, Replace:  10} # GloHD/ClaraHD (alyssum nova)
  - ReplaceInt: {Offset:  404, Find:  14, Replace:  14} # Forma/AuraOne/Sage/Elipsa (daylight)
  # Increment:
  - ReplaceInt: {Offset:  222, Find:  21, Replace:  43} # Add font sizes in increments of 1 until this size exceeded
  - ReplaceInt: {Offset:  228, Find:  22, Replace:  44} # Continue from this font size
  - ReplaceInt: {Offset:  250, Find:  49, Replace:  67} # Add font sizes in increments of 2 until this size exceeded
  - ReplaceInt: {Offset:  256, Find:  50, Replace:  68} # Continue from this font size
  # Now increment by +4 until final font size:
  - ReplaceInt: {Offset:  420, Find:   90, Replace:   80} # Other devices
  - ReplaceInt: {Offset:  422, Find:  122, Replace:   88} # Aura/Glo/Nia (phoenix)
  - ReplaceInt: {Offset:   48, Find:  150, Replace:  108} # LibraH2O/AuraHD/ClaraHD/GloHD/AuraH2O/Libra2 (dragon)
  - ReplaceInt: {Offset:  400, Find:  195, Replace:  132} # Forma/AuraOne/Sage/Elipsa (daylight)
Elvys is offline   Reply With Quote