Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-10-2026, 05:50 AM   #1
MrSilverstrike
Enthusiast
MrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than mom
 
MrSilverstrike's Avatar
 
Posts: 39
Karma: 78007
Join Date: Apr 2024
Location: Belgium
Device: Kobo Libra Color, Kobo Clara Color
Lightbulb NickelTypeFix: a mod for better typography and typesetting (kepub only)

Hi everyone.

I wanted to share my new mod here today, NickelTypeFix, which is a mod focused on improving typography and typesetting on Kobo devices' kepub renderer by fixing some bugs.

For a while now, I've been frustrated that Kobo devices seem to have issues correctly rendering fonts, especially compared to KOReader. When pixel peeping, you could notice that sometimes (some) characters would, in fact, shift 1px up or down relative to where you'd expect to see them, leading to an "uneven" or even "wobbly" feeling with certain fonts if you looked carefully at the baseline of the text.

Also, prior to today, you could add the following block to your `Kobo eReader.conf`, and tell the renderer to force proper ligatures etc. on, like this:

Code:
[Reading]
webkitTextRendering=optimizeLegibility
However, there's a few side effects:

- Justification breaks in some cases
- Vertical CJK books totally break as some key characters are rotated

Not to mention that sometimes, the kepub render seems to disregard your selected font when you reach a new chapter in the book you're reading. It's rare, but something I encountered before.

I tracked all of these things down and made a mod that fixes all these issues. I think it's pretty much ready for release, so I wanted to share it here first.

You can find the mod and some screenshots here: https://github.com/nicoverbruggen/NickelTypeFix

There's some screenshots attached in the README on GitHub so you can see what's been fixed.

This is a pretty niche mod, but especially the first fix makes font rendering so much better, especially if you use custom fonts. Individual parts of the mod can be turned off, too, so it's configurable. I've also done my best to make the mod as safe as possible.

Been running this for a while now on my devices, and it's great. I hope you all find it helpful!
MrSilverstrike is offline   Reply With Quote
Old 07-10-2026, 08:39 AM   #2
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: 84,110
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Thank you for this.

Would you also be able to fix so it doesn't split the last line between two pages when the line height is small enough? Thanks.

Last edited by JSWolf; 07-10-2026 at 08:44 AM.
JSWolf is online now   Reply With Quote
Advert
Old 07-10-2026, 10:46 AM   #3
MrSilverstrike
Enthusiast
MrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than mom
 
MrSilverstrike's Avatar
 
Posts: 39
Karma: 78007
Join Date: Apr 2024
Location: Belgium
Device: Kobo Libra Color, Kobo Clara Color
Quote:
Originally Posted by JSWolf View Post
Thank you for this.

Would you also be able to fix so it doesn't split the last line between two pages when the line height is small enough? Thanks.
If there's a font + book + setting combination you know of that can easily reproduce this, perhaps!
MrSilverstrike is offline   Reply With Quote
Old 07-10-2026, 01:57 PM   #4
xyclonei
Zealot
xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.xyclonei put the bomp in the bomp-a-bomp-a-bomp.
 
xyclonei's Avatar
 
Posts: 130
Karma: 67444
Join Date: Dec 2018
Device: Kobo Clara HD
Thank you for NickelTypeFix! I also use your NickelHome (and fonts) as well.

Quote:
Originally Posted by MrSilverstrike View Post
If there's a font + book + setting combination you know of that can easily reproduce this, perhaps!
I've noticed it with all typefaces. If you have the My 24 line spacing values kobopatch enabled, reducing the line spacing significantly should demonstrate the last line getting cut/split between pages.
xyclonei is offline   Reply With Quote
Old 07-10-2026, 03:23 PM   #5
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: 84,110
Karma: 153695583
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 MrSilverstrike View Post
If there's a font + book + setting combination you know of that can easily reproduce this, perhaps!
I don't know if the problem is due to patching or not. But when I have the line height set small. The last line at the bottom of the screen (with widows and orphans set to 1), splits. So part of the line in there and the rest is at the top of the next page.
JSWolf is online now   Reply With Quote
Advert
Old 07-10-2026, 06:29 PM   #6
MrSilverstrike
Enthusiast
MrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than momMrSilverstrike loves his/her reader more than mom
 
MrSilverstrike's Avatar
 
Posts: 39
Karma: 78007
Join Date: Apr 2024
Location: Belgium
Device: Kobo Libra Color, Kobo Clara Color
Ah, I think I ran into that as well when I tried the 24 line spacing values patch... given that it's a patch it's not surprising it may result in some strange behaviour. Hmmm, I'll take a look when I have some more time next week!

Personally, I think your odds of fixing it are higher if you were to just mod your preferred fonts' metrics, so that at the minimum setting, the lines are closer together. It's what I already do with the font collection I maintain. I think at a certain multiplier that the patch introduces, the layout engine's math that shifts text just breaks. Worth looking into though, for sure.

By the way, I got another fun mod idea earlier today that's actually bearing fruit with an experimental prototype at the moment: a mod that adds animated page turns, like Kindles have. I think it could become my second favorite Kobo mod if it works without issues, as it's a fun flourish I miss from my brief time with a Kindle. If I get that working I'll make another thread
MrSilverstrike is offline   Reply With Quote
Old 07-10-2026, 06:44 PM   #7
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: 84,110
Karma: 153695583
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 MrSilverstrike View Post
Ah, I think I ran into that as well when I tried the 24 line spacing values patch... given that it's a patch it's not surprising it may result in some strange behaviour. Hmmm, I'll take a look when I have some more time next week!

Personally, I think your odds of fixing it are higher if you were to just mod your preferred fonts' metrics, so that at the minimum setting, the lines are closer together. It's what I already do with the font collection I maintain. I think at a certain multiplier that the patch introduces, the layout engine's math that shifts text just breaks. Worth looking into though, for sure.

By the way, I got another fun mod idea earlier today that's actually bearing fruit with an experimental prototype at the moment: a mod that adds animated page turns, like Kindles have. I think it could become my second favorite Kobo mod if it works without issues, as it's a fun flourish I miss from my brief time with a Kindle. If I get that working I'll make another thread
Thanks for taking a look at the text cut-off. I hope you can fix it. Yes I could edit my font to have smaller space. I may try it. I've already made the space smaller then the default. The font I am using is ChareInk7SP. There is a version that makes the letters smaller. I may try that on my Kobo. I did it when someone requested it.

If the page animation uses more battery, then I'm not for it. I don't want to use more battery on something I can easily do without.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Typesetting Shakespeare Psymon ePub 26 06-20-2016 04:21 AM
Best typesetting/typography engine: Kindle Voyage vs Kobo Aura H2O cerem0ny Which one should I buy? 16 04-18-2016 08:45 AM
Is there a way to import kepub to calibre/convert a kepub to other formats? Major General Library Management 9 04-08-2014 10:00 PM
iOS Devices [mod: might be] Banned in Europe [mod: Germany] CyGuy News 27 12-13-2011 07:47 AM


All times are GMT -4. The time now is 11:43 AM.


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