Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
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
Old 01-17-2025, 05:25 PM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 12,795
Karma: 236462758
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by Elvys View Post
Also, font sizes in the hundreds on screens this size seem plain wrong…
Funny, that's just what many of us love about Kobo devices - plenty of font sizes to choose from. If you want only a handful of sizes, maybe some other brand would suit you better.

I'm not sure it's possible to do what you want, but let someone wiser comment on it.
Sirtel is online now   Reply With Quote
Advert
Old 01-17-2025, 06:14 PM   #3
Alastair_S
Zealot
Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.Alastair_S ought to be getting tired of karma fortunes by now.
 
Posts: 120
Karma: 1767614
Join Date: Feb 2014
Device: Kobo Touch
Instead of using the slider why don't you tap the plus and minus either side of the slider to change the size in small increments?
Alastair_S is offline   Reply With Quote
Old 01-18-2025, 07:38 AM   #4
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: 78,546
Karma: 142993688
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Sirtel View Post
Funny, that's just what many of us love about Kobo devices - plenty of font sizes to choose from. If you want only a handful of sizes, maybe some other brand would suit you better.

I'm not sure it's possible to do what you want, but let someone wiser comment on it.
I've read a lot of posts about a specific size on a Kindle being too small and the next up size being too large. That's not a problem with Kobo.
JSWolf is offline   Reply With Quote
Old 01-18-2025, 03:46 PM   #5
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 12,795
Karma: 236462758
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by JSWolf View Post
I've read a lot of posts about a specific size on a Kindle being too small and the next up size being too large. That's not a problem with Kobo.
Not to mention that people's preferences vary wildly. What are perfect font sizes for one person may well be completely unusable for someone else.

Personally I edit my ebooks to have unified body font size, so I don't have to fiddle with the slider on my Kobos. I set it once and forget about it.
Sirtel is online now   Reply With Quote
Advert
Old 01-18-2025, 04:16 PM   #6
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: 78,546
Karma: 142993688
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Sirtel View Post
Not to mention that people's preferences vary wildly. What are perfect font sizes for one person may well be completely unusable for someone else.

Personally I edit my ebooks to have unified body font size, so I don't have to fiddle with the slider on my Kobos. I set it once and forget about it.
I do the same mostly. I do up the font size sometimes when I am reading in bed and I want the font size slightly larger. But before I put down my Kobo, I will put the font size back to what it is normally.
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clara HD Custom dict font size is too small meo_map13 Kobo Reader 21 08-28-2021 05:01 AM
new font-size slider in 4.15 viewer rjwse@aol.com Calibre 1 05-06-2020 10:59 PM
Font size and accessibility options on Onyx Boox device greg_1981 Onyx Boox 0 08-14-2019 04:04 PM
Font Resize slider for Preview BetterRed Sigil 4 07-31-2019 07:29 PM
Problem changing font size using font size key Waylander Conversion 0 10-02-2013 03:30 PM


All times are GMT -4. The time now is 01:06 PM.


MobileRead.com is a privately owned, operated and funded community.