View Single Post
Old 01-16-2013, 11:57 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: 79,964
Karma: 147448039
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 kovidgoyal View Post
Your problem is more likely caused by the font-family declarations using the same font-family name for all four variants of the font. Change it to use different names and you should be fine. I suspect there is something about the way the charis compact font is designed that causes this usage to be problematic. If not, let me know.
The problem is not with the font or the font declaration. The problem is with Calibre. The problem is that Calibre doesn't see any ligatures so the ligatures get removed. Then ebook-viewer and ADE 2.0 both take the regular characters such as fi and fl and try to output ligatures. There are no ligatures in the subsetted font since Calibre has wiped them out. So, what we get is space instead of the ligature(s).

The way to do it (IMHO) is to make a list of all the ligatures and if the pairs exist in the ePub (unligatured), keep the ligature. As it is now, the only way the ligatured is kept is if the ligature is in the text.

Last edited by JSWolf; 01-17-2013 at 12:04 AM.
JSWolf is offline   Reply With Quote