![]() |
#106 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Okay, I hadn't yet played with the new and "improved" Bookerly, so, that was the perfect excuse to go ahead and try my hand at handling the Panose stuff like FontForge, but with fontTools instead: fix-panose.py.
And, apparently, it works ![]() My usual shenanigans for Bookerly, which I used to do by hand via FontForge: Code:
fonts=("${(@f)$(ls -1 ./Bookerly-*.ttf)}") for font in "${fonts[@]}" ; do gftools fix-vertical-metrics -a 802 -d -198 -l 0 "${font}" mv -v "${font%.*}.fix.ttf" "${font}" gftools nametable-from-filename "${font}" mv -v "${font}.fix" "${font}" fix-panose.py "${font}" mv -v "${font}.fix" "${font}" done And it behaves ![]() Sidebar, since I'm using an unhinted CFF Literata 3, and I tried the latest unhinted TTF Bookerly: ACCESS (Monotype's iType?) *really* doesn't like unhinted fonts, CFF or TTF. RMSDK appears to deal with unhinted CFF mostly properly (makes sense, it's Adobe), but deals with unhinted TTFs only slightly less badly than ACCESS. TL;DR: You'll probably want to stick to hinted TTFs, or eventually unhinted CFFs if you read plain ePubs. (Official Literata builds ship as TTF anyways). Last edited by NiLuJe; 04-18-2020 at 08:35 PM. |
![]() |
![]() |
![]() |
#107 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
I've seen some hand-hinted fonts that look truly awful on the Kobo (RMSDK, TTF), but no font with the hints stripped have every given me any problems, so YMMV. |
|
![]() |
![]() |
![]() |
#108 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yeah, some old/complex truetype hinting going kablooey doesn't surprise me all that much
![]() My experience with unhinted fonts has been pretty much uniformly terrible, on the other hand (but I tend to prefer CFF, which prooobably doesn't help). |
![]() |
![]() |
![]() |
#109 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,058
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
ChareInk isn't hinted and it works well with RMSDK, Access, and Kindle.
|
![]() |
![]() |
![]() |
#110 | |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Quote:
![]() (And I do mean on Kobo. Because, while I don't necessarily *like* it, it renders much better on Kindle and/or with recent FreeType versions in KOReader or Plato). |
|
![]() |
![]() |
![]() |
#111 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 137
Karma: 398492
Join Date: Apr 2018
Device: Kobo Aura One
|
Hi sherman, thank you for maintaining the ReadifyFont script.
I wanted to alert you to a possible shortcoming I found when running the output of the latest Literata v3 build through the script where Styles (SubFamily) attribute wasn't modified as expected to match the configuration in the script, so I had to manually correct these before using the ReadifyFont output on my Kobo device. More details in this post. |
![]() |
![]() |
![]() |
#112 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@JeanPierre: Literata 3 is a curious beast, because the main target is a variable font.
Which means the "fixed" builds end up having wonky metadata, sometimes dangerously so on Kobo. Here are my own notes on how I deal with Literata (when building it from source): http://trac.ak-team.com/trac/browser.../REMINDER#L125 |
![]() |
![]() |
![]() |
#113 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 2112464
Join Date: May 2019
Device: Kobo Aura One LE
|
Something is not right. Or, I do not understand (which sounds more plausible). I start with the downloaded Bitter HT font and work from there, in three manners.
(a) Modify with ReadifyFonts the fonts Medium and MediumItalic, to rename them to Regular and strip panose info. Add the downloaded fonts Bold and BoldItalic. (b) The same four files as above. Modify ALL of them via ReadifyFonts. (c) The same four files as above. Edit the two Medium fonts via FontForge. Add the downloaded fonts Bold and BoldItalic. I tried with Kobo KEPUB reader (with store KEPUB books) and with KOREADER with sideloaded EPUB files). The only option that works is (c). Otherwise the fonts are defect (letters like B, d, p have their "eye" filled in black). This is not consistent. For some other fonts, the three options are equivalent. Last edited by gogu1904; 08-23-2020 at 11:12 AM. |
![]() |
![]() |
![]() |
#114 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Oct 2021
Device: kobo glo hd
|
Error info:
Traceback (most recent call last): File "D:\kobo\KoboifyFonts-v0.3.1\KoboifyFonts-0.3.1.py", line 136, in <module> for key, val in fontDic.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems' What should I do? |
![]() |
![]() |
![]() |
#115 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
That looks like an error you get when you run a Python 2 script using Python 3. Changing "iteritems" to "items" on line 136 of the script might fix it (I can't remember if the Python 3 dictionary has the method items). Or install Python 2 and run it under that.
|
![]() |
![]() |
![]() |
#116 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Oct 2021
Device: kobo glo hd
|
Thanks!I will try it.
|
![]() |
![]() |
![]() |
#117 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Oct 2021
Device: kobo glo hd
|
Thanks again!It worked!
|
![]() |
![]() |
![]() |
#118 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 40
Karma: 216612
Join Date: Feb 2022
Device: Kobo Nia
|
Isn't it recommended to use the more recently maintained ReadifyFont scripts rather than the older kobify-fonts one? At least that script seems to work with either version of Python...
https://github.com/shermp/ReadifyFont Last edited by iandol; 05-05-2022 at 05:32 AM. |
![]() |
![]() |
![]() |
#119 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
Quote:
![]() I kept meaning to move to using something like fonttools instead of FontForge, but it never quite happened. Maybe some day... |
||
![]() |
![]() |
![]() |
#120 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Apr 2020
Device: Kobo Forma
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
font |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add alternate fonts without replacing system fonts.(this time this is a guide) | techiemonkey | Kindle Developer's Corner | 17 | 09-12-2012 04:55 PM |
An Observation on Fonts - Improving readability by using *bold* versions of fonts | nesler | General Discussions | 12 | 06-24-2012 12:33 PM |
need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 | hanpal | Kindle Developer's Corner | 1 | 02-20-2012 10:40 AM |
Troubleshooting need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 | hanpal | Amazon Kindle | 0 | 02-20-2012 08:51 AM |
Touch Fonts question (special characters in stock and custom fonts) | levil | Kobo Reader | 20 | 09-23-2011 01:51 PM |