Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 09-28-2019, 09:23 AM   #1
Alanon
Connoisseur
Alanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watch
 
Alanon's Avatar
 
Posts: 76
Karma: 10742
Join Date: Jul 2017
Location: Serbia
Device: Kobo Aura One
Font Forge and adding font weight for Kobo?

I've been on the lookout for nice fonts since the day that I got my Kobo. I've pretty much been on the excellent ChareInk since the moment I discovered it, but I still enjoy looking up and testing fonts that seem promising. I like some serif goodness in my fonts, but an occasional slab can also be appealing. Anyway, after harassing my friend well and good, I managed to badger him into giving me the full set of those nice-looking "eText" font redesigns that were released a few years back. From the marketing spiel, I was hoping that they would be almost ideal for eInk, due to the "super special" technology that was supposedly used in crafting them.

While I actually love the look and feel of all the fonts - spacing, line height, etc, I honestly wouldn't change any of it - the weight leaves something to be desired. Though not nearly as bad as Adobe's Garamond or Jenson (perfect, beautiful fonts, if only they were not so... spidery on my Aura One), they are still a bit on the thin side. The heavier fonts like Galliard could use about 10-15% more weight to reach perfection. To top it off, about half of the fonts had bad PANOSE settings, which was apparent in the selection menu. So I set out to learn how to fix these things. I tried Koboify Fonts 0.3.1 and the latter Readify Font scripts - both refused to embolden the fonts, and in some cases even failed to alter PANOSE settings. (Note, this might have been a consequence of different Font Forge versions - to be certain that the scripts would work, I used the 2015 and 2016 versions respectively, as those were the versions active when the scripts were written.)

Finally, I gave up on the scripts, opened up the latest release of Font Forge for the very first time and decided to do it all manually. Oh boy, what a garbled mess that thing is. I was able to correct the PANOSE settings, but again the added weight did not work. To add the weight, I simply selected all the glyphs and added some weight in the Element - Style - Change Weight - Embolden by, and left everything else alone. Besides this, the only things I've touched were the font names and PANOSE settings - all other errors were usually ignored. I saw the glyphs become heavier while they were processing, and the files ultimately generated properly. To make things even more confusing, once I figured out that there was a problem, I tried to substitute a medium and medium italic font for the regular ones by renaming the set properly, hoping that that would result in a change - it did not. The regular font remained the same weight, and the italic font became regular bold. (Throughout this process, I made sure to check for leftover Kobo font or reading settings, custom sharpness or weight values.)

It may very well be that these fonts have some special tables that prevent the emboldening to appear on my device? I've placed the typical warnings I get when tinkering in Font Forge in the spoiler below, and I've summarised some of the errors that crop up when adding weight. I've tried experimenting with removing the errors, auto correcting and ignoring them, to no avail.

Spoiler:
The following table(s) in the font have been ignored by FontForge
Ignoring 'ADFH'
Ignoring 'DSIG' digital signature table
Ignoring 'VDMX' vertical device metrics table
Ignoring 'hdmx' horizontal device metrics table
This font contains both a 'kern' table and a 'GPOS' table.
The 'kern' table will only be read if there is no 'kern' feature in 'GPOS'.
Warning: Mac and Windows entries in the 'name' table differ for the
Fullname string in the language English (US)
Mac String: Galliard eText ITC ITC
Windows String: Galliard eText ITC
The glyph named Omega is mapped to U+03A9.
But its name indicates it should be mapped to U+2126.


After modifying the weight, I would also get errors in some of the font points citing "You have changed the point numbering of glyph XY... Instructions in this glyph (or one that refers to it) have been lost".

When generating the font, I'd get "Self Intersecting, "Missing points at Extrema", "Wrong direction", "Non-integral coordinates", and "Bad Point Numbering" errors, that I ignored.

Based on my random tinkering, not ignoring some of these completely garbles question marks and the like.


I've no idea what these errors mean or if they're critical or not. I have no clue what to try next and I'm very close to throwing in the towel and using Galliard as-is, which leads me to the question for all you knowledgeable font nerds around here. Am I doing it wrong? Is there some additional step in Font Forge that I missed, which might cause the changes to go wonky? The errors I've tried to describe might mean something to someone, at least enough to point me in the right direction.

I appreciate you sticking with my long-winded narrative, and I'd also appreciate any thoughts you might have on where to go from here!


As an aside, I've included screenshots of all the eText fonts I have installed. In case you were thinking of, or still considering, getting any of them, you can see if they're worth it. One thing I can say, they look substantially... more substantial on the screenshots than on the device itself. Note that there are more fonts in the pack (like Amasis, Malabar, Caecillia, etc.), but they overlap with what comes default with Kobo, and there seems to be some interference there, so I can tell you nothing about them.
Attached Thumbnails
Click image for larger version

Name:	Baskerville.png
Views:	368
Size:	147.0 KB
ID:	173767   Click image for larger version

Name:	Dante.png
Views:	358
Size:	148.4 KB
ID:	173768   Click image for larger version

Name:	Didot.png
Views:	307
Size:	143.5 KB
ID:	173769   Click image for larger version

Name:	Galliard.png
Views:	333
Size:	157.3 KB
ID:	173770   Click image for larger version

Name:	Halesworth.png
Views:	333
Size:	155.5 KB
ID:	173771   Click image for larger version

Name:	Palatino.png
Views:	277
Size:	150.4 KB
ID:	173772   Click image for larger version

Name:	Sabon.png
Views:	280
Size:	151.0 KB
ID:	173773   Click image for larger version

Name:	Tipperary.png
Views:	302
Size:	139.9 KB
ID:	173774   Click image for larger version

Name:	Ysobel.png
Views:	275
Size:	139.8 KB
ID:	173775  
Alanon is offline   Reply With Quote
Old 09-28-2019, 10:08 AM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 10,146
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Kobo has an inbuilt weight adjustment slider. Why not use that? It gives better results than doing it with FontForge.
Sirtel is online now   Reply With Quote
Advert
Old 09-28-2019, 10:51 AM   #3
Alanon
Connoisseur
Alanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watch
 
Alanon's Avatar
 
Posts: 76
Karma: 10742
Join Date: Jul 2017
Location: Serbia
Device: Kobo Aura One
That was my initial thought, until I read the opposite on several places in the forum - that Font Forge's algorithm yields better quality than Kobo's built-in setting and preserves more of the font's qualities than Kobo's solution. I have no basis for claiming this (especially not since I wasn't able to embolden the fonts to see for myself), other than the people who claimed this seemed quite versed in typography.

I had also planned on seeing whether or not there are any visible changes to removing the fonts' kerning and hinting, as well as removing PANOS entries with the program. Given that I was going to mess around with Font Forge anyway, it made sense to try and use it for adjusting the weight. I also find editing the fonts has an added benefit, as I can just set them up and not think about it, I can backup the fonts and store them for a day that I might not use Kobo devices.
Alanon is offline   Reply With Quote
Old 09-28-2019, 11:25 AM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
It's going to be a mess no matter which way you go, especially with heavily (truetype) hinted fonts, as these appear to be.

If there are CFF variants available, these may be less prone to fits of madness (in general, CFF > everything else, as FreeType is using code contributed by Adobe, and Adobe are pretty much the only people on earth doing font rendering mostly right by default).
NiLuJe is offline   Reply With Quote
Old 12-05-2019, 09:25 AM   #5
AnimalOfArt
Groupie
AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.
 
AnimalOfArt's Avatar
 
Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
Quote:
Originally Posted by NiLuJe View Post
It's going to be a mess no matter which way you go, especially with heavily (truetype) hinted fonts, as these appear to be.

If there are CFF variants available, these may be less prone to fits of madness (in general, CFF > everything else, as FreeType is using code contributed by Adobe, and Adobe are pretty much the only people on earth doing font rendering mostly right by default).
OpenType (OTF) is using the CFF, right?
AnimalOfArt is offline   Reply With Quote
Advert
Old 12-06-2019, 12:08 PM   #6
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
In most cases, yeah.

But, you can *technically* put TTF curves in an OTF.

Meaning, if a font is offered *both* as a TTF and an OTF, then, yeah, the OTF will probably be using CFF.

If it's only offered as an OTF, all bets are off. Except if it's a variable font, in which case it's probably CFF, too. Not that your eReader would know what to do with a VF though ;p.
NiLuJe is offline   Reply With Quote
Old 12-06-2019, 04:10 PM   #7
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
I've come to the conclusion that the OpenType font specification is an utter mess.

It seems the big tech companies like Apple, MS, Adobe, IBM all decided to create a universal font spec, and instead of going away and creating a new font spec from scratch, or even carefully selecting the best bits from various formats, it seems that most of the features from most of the existing formats were dumped into a pot, stirred around a bit, and out came OpenType.

And yeah, an OpenType font can contain TT or CFF outlines, and the file extension is more of a polite suggestion as to what it might contain.
sherman is offline   Reply With Quote
Old 12-12-2019, 04:35 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Alanon View Post
That was my initial thought, until I read the opposite on several places in the forum - that Font Forge's algorithm yields better quality than Kobo's built-in setting and preserves more of the font's qualities than Kobo's solution. I have no basis for claiming this (especially not since I wasn't able to embolden the fonts to see for myself), other than the people who claimed this seemed quite versed in typography.

I had also planned on seeing whether or not there are any visible changes to removing the fonts' kerning and hinting, as well as removing PANOS entries with the program. Given that I was going to mess around with Font Forge anyway, it made sense to try and use it for adjusting the weight. I also find editing the fonts has an added benefit, as I can just set them up and not think about it, I can backup the fonts and store them for a day that I might not use Kobo devices.
You just need to patch your Kobo to enable the Advanced Font Control for allowing side loaded TTF fonts to have the weight adjusted. Then you can test for yourself which you like better.

But the issue with doing it with Fontforge is that you may have to keep going back and forth to get it the way you want. With the Kobo way, it's just a slider that shows you as you change the slider.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Side-loaded Font Weight Patch dzhmartin Kobo Developer's Corner 3 03-02-2019 02:01 AM
Aura HD Font weight and sleep problem Nick Payne Kobo Reader 1 10-03-2014 07:09 AM
Aura font weight urbie Kobo Reader 8 08-12-2014 08:07 AM
Glo Font Weight and Sharpness bethany7 Kobo Reader 3 03-31-2013 11:22 PM
Font Weight Issue: Rowebo Conversion 2 01-09-2013 12:33 PM


All times are GMT -4. The time now is 12:10 PM.


MobileRead.com is a privately owned, operated and funded community.