View Single Post
Old 03-15-2016, 01:30 AM   #9
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by seanos View Post
I have run the font through FontSquirrel’s Webfont Generator which can fold OpenType features into the font (hlig in this case), so it’s possible that had done something strange along the way. It is odd that the problem only shows up in kepub though.
The ePub reader uses code in Adobe's RMSDK to render the fonts, but the KePub reader uses WebKit. They are very different, but in general the ePub reader handles fonts better than the KePub reader does. Things like kerning and ligatures work out-of-the-box with the ePub reader, but either don't work at all or take a lot of tweaking of the fonts to get them to work in the KePub reader. The KePub reader also has some problems with uneven word spacing and irregular line justification which might be related to its handling of fonts.

Possibly the Webfont generator has folded in some feature that the KePub reader can't handle properly, perhaps the opbd/lfbd/rtbd features? It is interesting though, it might still be possible to fold in the ligatures without the other features and get a font where ligatures work in the KePub reader.

Quote:
Although I have FontForge I’ve barely used it. Is it simply a matter of checking Old Style ‘kern’ in the font generation options? I notice there’s also a Windows-compatible ‘kern’ option — is that required as well? I had been using the OTF version.
Yes, to get the normal kerning working in the KePub reader just tick the Old Style 'kern' option. I haven't seen a WIndows-compatible option, but i am using an older version of FontForge. The Webfont generator might be doing something else with the kerning though, so maybe there are other ways to get the KePub kerning working.
GeoffR is offline   Reply With Quote