10-15-2015, 02:15 PM | #46 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Sep 2014
Device: none
|
GeoffR, you were referring to an unhinted font in a previous post in this thread. May I ask why you've explicitly stated that the font is unhinted? I've been playing around with fonts on the Kobo lately, and can't find in-depth information on the web about whether it makes sense or not to remove the hinting info from fonts for use on eBook readers, specifically the Kobo H2O. I'd be thankful for any info on the subject.
|
10-16-2015, 01:22 AM | #47 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Here is a post with screenshots comparing the hinted and unhinted Gentium Book Basic. If the font looks good to you then I wouldn't bother removing the hinting, but if you notice that some glyphs look darker than others, or are of uneven thickness, or are just very thin; especially if the effect goes away when you increase the font size, then it might be caused by the hinting. Last edited by GeoffR; 10-16-2015 at 02:00 AM. Reason: spelling |
|
10-16-2015, 02:37 AM | #48 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Sep 2014
Device: none
|
Thanks, that was exactly the type of information I was looking for!
|
10-16-2015, 06:59 AM | #49 |
Bookworm
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
In this case I am a complete newbie, but did some research, hinting would be done to make the font better visible at a low resolution (that is what I understand) but in the examples,the unhinted looks much better to me.
So the question rise, can you prevent the hinting by the device or do you have to manually adjust the fonts ? |
10-16-2015, 07:17 AM | #50 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You can also 'fix' the broken Gentium byte code hinting by using ttfautohint, which will rebuild them using FT's autohinter .
|
10-16-2015, 08:54 AM | #51 |
Enthusiast
Posts: 46
Karma: 26050
Join Date: Sep 2015
Device: Kobo Aura
|
I think this is the first time I see mention of this Reagl refresh. What is it, why is it Aura specific (I use the Aura) and what makes it different from the other refreshes.
Also in regards to the Advanced font controls... I grabbed the Literata .OTF files a while ago from somewhere on the internet and I had the impression that those should work just fine with kepubs (including the advanced font control). The font seems to be applied just fine but the Advanced font controls are not present. Do I still need to apply the patch unlocking the advanced font control or have I simply misunderstood how the kepubs interact with .OTF fonts? |
10-16-2015, 09:23 AM | #52 |
Connoisseur
Posts: 77
Karma: 5414
Join Date: Mar 2013
Location: CK, Poland
Device: Kobo Glo, H2O
|
Would it be possible to make a patch that would center the covers and captions on home screen tiles? And it also would be great if tiles were vertically justified (and not aligned to top like now)
I know it's just pure aesthetics so I'm not expecting you to even start looking for a solution just for me but maybe some day.. And one more thing.. Is it possible to make Kobo display some parts of kobofied epub with publisher font and other with font selected from font face menu? Both fonts are on the device. Last edited by mietek81; 10-16-2015 at 09:38 AM. |
10-16-2015, 10:43 AM | #53 | ||
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Quote:
However kerning only works with TTF fonts (if the also have 'old-style' kern tables) in Kepubs, but it with both OTF and TTF fonts (without the need for 'old style' kern tables') in ePubs. So in practice TTF is the preferred format for Kobos because it allows kerning and advanced font controls in both ePubs and KePubs. |
||
10-16-2015, 11:25 AM | #54 | |||
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Quote:
Quote:
|
|||
10-16-2015, 11:39 AM | #55 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
`Un-Force user font-family in KePubs`
The KePub reader is very heavy-handed when a font-family other than 'Publisher Default' is selected from the font menu. This patch makes the KePub reader use a lighter-handed approach similar to the ePub reader, letting the user select a font, but allowing the publisher to overide it.
The first alternative just uses the user-selected font at <body> level, the publisher can override anything else. The second alternative forces the user-selected font to be used at <body> and <p> level, which is similar to how the unpatched ePub reader does it. I haven't tested this patch much, it seems to work but let me know if you see any unexpected side effects. Paste into libnickel.so.1.0.0.patch: Spoiler:
|
10-17-2015, 07:25 AM | #56 |
Connoisseur
Posts: 77
Karma: 5414
Join Date: Mar 2013
Location: CK, Poland
Device: Kobo Glo, H2O
|
So if I have an ebook about programming and program code is in something like <pre class="programs"> tag and rest of text in <p class="noindent"> tag than with patch altrnative 2 all code will be in publisher font and rest in font of my choice? Am I right?
|
10-17-2015, 07:41 AM | #57 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Code:
p {font-family: serif;} pre {font-family: sans-serif;} The only difference with alternative 1 is that <p> would be in serif (Georgia). There are lots of ways for the publisher to mess this up though, such as using <div> instead of <p> for paragraphs, using <p> for things which are not paragraphs, etc. Edit: A simpler way to look at it is: if MyFont is the font you have selected from the font menu, then alternative 1 is like adding this to the end of the stylesheet: Code:
body {font-family: MyFont !important;} Code:
body, p {font-family: MyFont !important;} Last edited by GeoffR; 10-17-2015 at 07:53 AM. Reason: Asimpley way to look at it ... |
|
10-17-2015, 07:51 AM | #58 |
Bookworm
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
That is why I always manually edit a book,I can add so many things with an extra.css but there is always one rule that make it "worthless".. 9 out of 10 the publisher tries to make the epub look exactly the same as the book,including grayscales at fonts.. almost every e-reader is capable of selecting a good font,set the margins by hand,justify txt or not,stretch the txt so it will fill the whole line,but publishers want to let it be hard coded..it is almost impossible to make a patch for this because they don't use a standard,they just try their own rules to do it and i think 90% of them doesn't even try how it looks on a e-reader... and sometimes they make you crazy the way they make the lay-out.. we try with patches to get as much as possible on a page, they use line heights of 1.6 or bigger and upper,lower,left and right margins...
|
10-17-2015, 07:55 AM | #59 |
Connoisseur
Posts: 77
Karma: 5414
Join Date: Mar 2013
Location: CK, Poland
Device: Kobo Glo, H2O
|
Ok, so I guess that it will be the same if instead of font family I have specific font (e.g for <pre> DejaVuSansMono)?
|
10-17-2015, 08:17 AM | #60 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Edit: I have a feeling I might have misunderstood what you wanted when I said this patch would do what you want. There isn't any way to select more than one font from the device, the user can just select one font and all the others have to be specified in the book. This patch just prevents the user-selected font from overriding all the fonts specified in the book, making the KePub reader behave more like the ePub reader. Last edited by GeoffR; 10-17-2015 at 08:47 AM. Reason: I have a feeling ... |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.15.0 | GeoffR | Kobo Developer's Corner | 146 | 05-24-2016 06:10 AM |
Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 05:35 PM |
Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 AM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 03:40 AM |
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x | GeoffR | Kobo Developer's Corner | 285 | 08-27-2014 10:06 AM |