02-24-2019, 12:29 PM | #1 |
Wizard
Posts: 2,838
Karma: 10700629
Join Date: May 2016
Location: Canada
Device: Onyx Nova
|
Installing fonts
I'm having trouble getting Koreader to see custom fonts. I've installed the .otf and the .ttf version of Caecilia and the .ttf of Rockwell in the koreader/fonts folder, both in subfolders dedicated to the fonts, and the actual root of the /fonts folder. Koreader doesn't see them. Does anyone know what I'm doing wrong?
|
02-24-2019, 01:07 PM | #2 |
Wizard
Posts: 1,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Could be that they're blacklisted for not working?
https://github.com/koreader/koreader....lua#L137-L188 |
Advert | |
|
02-25-2019, 03:50 PM | #3 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
If they're either blacklisted or using an already registered family name, they'll be dropped. You can check the crash.log for more details about what's happening in your case.
|
09-05-2020, 01:05 AM | #4 | |
Enthusiast
Posts: 27
Karma: 937152
Join Date: Oct 2012
Device: Kobo Sage/KOReader
|
Quote:
In Fontforge, if I set the font family to "Whatever-Regular", "Whatever-Bold", "Whatever-Italic", and "Whatever-BoldItalic", to match the "Fontname" field (and the .otf filename), then they all load... but they show up as four separate and unrelated fonts. If I set the font family to "Whatever", with the "Fontname" including the "-Bold" etc modifiers, then only the first one (bold) loads, and the rest get a "ERROR failed to register crengine font" log entry, and using that font just displays everything in bold. It feels like I should be setting them all to the same family -- and doing that makes the font work in the Kobo's default reader software -- but I'm clearly missing something here. I've googled around, but can't find a thread with more relevant info than this. Any ideas on what I'm missing or doing wrong? |
|
09-05-2020, 11:38 AM | #5 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
If you have access to a Python setup, just use gftools' nametable-from-filename tool.
(c.f., http://trac.ak-team.com/trac/browser...s/REMINDER#L96) Last edited by NiLuJe; 09-05-2020 at 03:05 PM. |
Advert | |
|
09-05-2020, 01:09 PM | #6 |
Enthusiast
Posts: 27
Karma: 937152
Join Date: Oct 2012
Device: Kobo Sage/KOReader
|
Thank you! That did it. I'm not quite sure what it did (it's definitely using the same font family like I was trying), so it must be doing something non-obvious in one of those Panose tabs or something, but the important thing is that it works now.
|
09-05-2020, 03:06 PM | #7 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
IIRC, CRe doesn't give a lick about the Panose stuff, the (moderately crappy) heuristic only cares about the OS/2 name tables.
And, yeah, a common Family, and the Style properly set in the right place (but not in the family name itself) should be enough. It's generally not an issue, but, gftools does the right thing, and as my notes explain, it also does part of the right thing to make both ACCESS & RMSDK happy too, so, win-win-win . Last edited by NiLuJe; 09-05-2020 at 03:08 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PW2 bricked after installing Fonts hack | antistatic | Kindle Developer's Corner | 14 | 04-07-2017 12:37 PM |
Installing Tamil Fonts on SnPRS - T2 | Raman | Sony Reader | 3 | 01-12-2013 12:54 PM |
Installing Tamil Fonts on Kindle 4.1.0 | sriramvenkatesan | Amazon Kindle | 14 | 10-22-2012 11:45 AM |
PRS-T1 Still have a problem with installing fonts in my device | hamedavatar | Sony Reader | 5 | 06-21-2012 06:46 PM |
Installing fonts, exporting annotations | brainycat | Onyx Boox | 5 | 11-01-2011 07:27 AM |