04-12-2024, 05:59 AM | #1 |
Member
Posts: 16
Karma: 10
Join Date: Apr 2024
Device: Libra 2
|
Any way to disable font hinting in stock reader?
I noticed in Koreader, if I change font hinting to "off" or "native" (same result), the text renders beautifully. If I leave it on Auto (which applies hinting), the fonts appear misaligned especially along the bottom. Some letters higher than others etc.
This is also exactly how they are rendered in the stock reader, leading me to believe it's also applying auto hinting. I much prefer using the stock reader, but now that I've seen how much better text can look in Koreader, I can't go back! Is there a way I can turn it off in the stock reader? This post seems to suggest I can edit the Kobo stylesheet, but I couldn't figure out how to do that haha |
04-12-2024, 12:12 PM | #2 | |
Resident Curmudgeon
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
04-12-2024, 04:33 PM | #3 | |
Member
Posts: 16
Karma: 10
Join Date: Apr 2024
Device: Libra 2
|
Quote:
I find pretty much every font I try looks better in Koreader with hinting off, but as an example I use EB Garamond Absinthe, Crimson Pro, ChareInk, Goudy Old Style etc. I’ve tried stripping all hinting using FontForge. It’s no use, as Kobo will force autohinting to all unhinted fonts and mess them up. So in a way yes it doesn’t matter if the font is hinted or not- in the stock reader it’s forced on. I can take some screenshots if necessary. But really all one needs to do to see the difference is turn them on/off in Koreader and see how much more even they render when turned off. When turned on, they become ”wobbly”, and look identical to Kobo’s stock reader. |
|
04-12-2024, 05:57 PM | #4 |
the rook, bossing Never.
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I've never seen "wobbly" fonts in Kobo's ADE or Kepub renderers, nor on KOReader (Elipsa for a while and also the Likebook Mars). I also don't think KOReader looks better.
|
04-12-2024, 06:08 PM | #5 |
Bibliophagist
Posts: 40,579
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I tried KOReader, Plato, RMSDK and the WebKit based renderer used for kepubs and did not see any "wobbly' looking fonts at the font size I normally use when reading.
|
Advert | |
|
04-12-2024, 07:13 PM | #6 |
Member
Posts: 16
Karma: 10
Join Date: Apr 2024
Device: Libra 2
|
I’ll get some screenshots as soon as I’m able.
|
04-12-2024, 08:02 PM | #7 |
Bibliophagist
Posts: 40,579
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The first 3 are from KOReader, the last is from Nickel, all running on a Clara HD. The font is ChareInk.
Last edited by DNSB; 04-12-2024 at 09:12 PM. Reason: Added image from Nickel on Clara HD. |
04-12-2024, 08:12 PM | #8 | ||
Member
Posts: 16
Karma: 10
Join Date: Apr 2024
Device: Libra 2
|
Quote:
Quote:
(font is EB Garamond Absinthe, but I get similar results with many other fonts also) Notice how the "u" raises up above the top of the neighboring "o" and "s". The cross on the "t" and "f" do the same. Along the bottom, the "f" and "h" appear to stick out lower. This is actually an optical illusion caused by the bad autohinting, where any of the letters with rounded bottoms are pixel-perfectly aligned to the bottom line. Whereas with no hints, they stick out ever so slightly below, which is the correct way to align rounded characters. To the human eye it appears correct. This is how printed text in a book behaves. You can also see it messed up the serifs a little, have a look at how it flattens out the serif on the left stem of the "u", and the bottoms of "h" and "f". -- I know this is subtle and perhaps nitpicky for most people, but hey we're staring at these words for hours on end. In the context of reading a whole page, all these inconsistencies sorta mesh together and make the text overall look "wonky" and misaligned. I'm thankful I can have beautiful, print-like text in Koreader. But I really wish it was possible for Kobo to natively, y'know, render beautiful print-like text. It's kind of the one thing I expected it to do. If anyone knows a way to get these results on the stock reader I'd be eternally thankful Last edited by mistle; 04-12-2024 at 08:14 PM. |
||
04-13-2024, 07:27 AM | #9 | |
Resident Curmudgeon
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=184056 |
|
04-13-2024, 08:49 AM | #10 | |
Member
Posts: 16
Karma: 10
Join Date: Apr 2024
Device: Libra 2
|
Quote:
You may have misinterpreted what I said though, as Koreader doesn’t require the fonts to be hinted. It gives you the choice between off, native, or auto, so you can select whichever you prefer. On many fonts, auto creates misaligned characters. Turning it off fixes the issue. In comparison, the stock Kobo reader always has the misaligned characters (with certain fonts). If the font has native hinting, it uses it, and if it’s unhinted then it applies auto hinting. Either way, the font is wobbly. There’s no way that I know of to disable auto hinting on unhinted fonts, thus why I created this thread. The only way I know of to have all fonts render properly is to use Koreader and disable hinting, which is what I’m doing for the time being. (Also here’s the gif again as the previous link broke): |
|
04-13-2024, 05:13 PM | #11 |
Wizard
Posts: 1,435
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
You might try asking in the kobopatch request thread.
|
04-13-2024, 06:52 PM | #12 |
Zealot
Posts: 122
Karma: 2600
Join Date: Sep 2009
Device: EZ Reader Pocket PRO
|
I don't have a Kobo so I can't speak to the stock reader, but as someone who looks at fonts a lot, I can tell you that having this switch to turn hinting on and off is quite valuable.
Some fonts don't have hinting or have bad hinting, in which case, turning off hinting will activate freetype's autohinter and produce better results than trying to force pixels into a grid. Fonts that have good hinting will do better with hinting on. An example of a font without hinting, is this older version of Gentium (use the Book weight especially).. you will see that it looks much better with hinting turned off than with it on. https://software.sil.org/downloads/r...Basic_1102.zip For the stock reader, it really depends on how freetype is configured.. I would say just use fonts that have hinting already applied for the stock reader. Usually hints are found in ttf fonts and not otf, though hinting can be done in otf, but it is less common. One you could play with in both readers is the Stix Two fonts.. they offer autohinting on both the otf and ttf, but the variable font version is unhinted. So you could try the variable font first in both readers, then take it off and put in the ttf version and see how that is. https://github.com/stipub/stixfonts/tree/master/fonts |
04-14-2024, 06:17 AM | #13 |
Addict
Posts: 220
Karma: 340434
Join Date: Dec 2020
Location: Israel
Device: Kobo Libra H2O
|
why is this still a thing? Isn't hinting required for rendering on low DPI screens, which modern e-readers aren't?
|
04-14-2024, 07:31 AM | #14 | |
Resident Curmudgeon
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
04-14-2024, 10:19 AM | #15 | ||
Member
Posts: 16
Karma: 10
Join Date: Apr 2024
Device: Libra 2
|
Quote:
Quote:
I agree, as I said this problem only applies to certain fonts. ChareInk renders well both with/without hinting (even though I’m not partial to the font itself), as do a few other fonts I tried. But many do not, thus the conceit of the thread. Last edited by mistle; 04-14-2024 at 10:23 AM. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ares Note 3.1.0 OTA broke font sizes in non stock apps | rvcjew | Boyue | 4 | 05-14-2021 09:47 AM |
downsides to having disable font rescaling always on? | lumpynose | Conversion | 11 | 05-17-2019 03:48 PM |
Font hinting in fontconfig preferences | Axell | Conversion | 1 | 07-03-2018 10:15 PM |
Disable font resize swipe?? | Daveychan | Kindle Developer's Corner | 0 | 10-25-2016 10:00 PM |
Unable to disable rescaling of font sizes | lith61 | Conversion | 2 | 11-18-2015 04:37 PM |