View Single Post
Old 01-19-2019, 05:28 PM   #30
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,940
Karma: 146918083
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 Psymon View Post
Interesting, I've seen that optimizeLegibility (or optimizeSpeed) thing before, and thought I had that in my code, but it seems not -- it wouldn't hurt to add it in, I suppose.

I don't think it would work on all devices, however. It was somewhere in an earlier thread here from years ago (and via other tutorial websites on the 'net), when I first got into this, that I developed my CSS code to turn on ligs on as many platforms as possible -- in fact, I just today added in some extra stuff on top of what I had before, suited for web browsers, too, in case someone might end up looking at my book with a browser plugin or something (I have no idea if it will actually do anything -- ebooks in web browsers look like crap, from what I've seen -- but at the same time it does no harm to add it in).

This, from my CSS, turns off all hyphenation (since the English in my book is Elizabethan English, and I didn't want words breaking in ways they shouldn't) and should turn ligs -- and also kerning -- on in "everything"...

Code:
-webkit-hyphens:none;
-epub-hyphens:none;
-moz-hyphens:none;
hyphens:none;
-moz-font-feature-settings: "hist=1, liga=1, dlig=1";
-ms-font-feature-settings: "hist", "liga", "dlig";
-webkit-font-feature-settings: "hist", "liga", "dlig";
-o-font-feature-settings: "hist", "liga", "dlig";
font-feature-settings: "hist", "liga", "dlig";
-webkit-font-smoothing: antialiased; /* Chrome, Safari */
-moz-osx-font-smoothing: grayscale; /* Firefox */
-moz-font-feature-settings:    "kern" 1; 
-ms-font-feature-settings:     "kern" 1; 
-o-font-feature-settings:      "kern" 1; 
-webkit-font-feature-settings: "kern" 1; 
font-feature-settings: "kern" 1, "liga" 1;
font-kerning: normal;
How to turn it off, though? Pffft! That's why I'm here (with my query)!

I should probably add in that optimizeLegibility thing, too, like I said -- can't hurt, and thank you for that (even as a reminder).
Do you realize that all that stuff in your code is not actually valid ePub code?
JSWolf is offline   Reply With Quote