View Single Post
Old 04-13-2024, 10:21 PM   #1083
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by mistle View Post
I made a topic about this but it was suggested I ask here.

You can read the long explanation of my request here, but the short of it is that many fonts render much better with hinting disabled. However, even if the font has no hinting instructions, Kobo forces autohinting. I'd love if there was a patch to disable autohinting
The code that @GeoffR mentioned back in 2015,
Code:
body { -kobo-font-hintstyle: 1;}
does still exist in one of the patchable files, namely libnickel.so.1.0.0. Whether it's actually still used I don't know.

To confuse matters a bit the same code exists in 3 different places. One of the locations looks as if it may be part of the default CSS which is applied to all kepubs. This is probably what Geoff was referring to. I don't know what the other 2 occurrences are targetted at.

I don't know much about font hinting so can't predict what results you might see. I should be able to create a patch that will let you test your theory that setting it to
Code:
body { -kobo-font-hintstyle: 0;}
may be helpful.

I'll try to post a beta patch here tomorrow for you to play with.
jackie_w is offline   Reply With Quote