View Single Post
Old 05-29-2019, 06:36 PM   #108
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,257
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by lumpynose View Post
What about this CSS:

Code:
body {
  font-kerning: normal;
  font-variant: common-ligatures oldstyle-nums proportional-nums;
  font-feature-settings: "kern", "liga", "clig", "onum", "pnum";
}

h1, h2, h3 {
  font-variant: common-ligatures lining-nums proportional-nums;
  font-feature-settings: "kern", "liga", "clig", "lnum", "pnum";
}
This comes from (scroll down to Improve legibility):

https://friendsofepub.github.io/eBookTricks/
Why not try it and report back

I seem to remember, from 2-3 years ago when I was originally messing with this, that
Code:
-webkit-font-feature-settings: "liga"
did give standard ligatures in kepubs, but that "dlig" didn't work. I didn't try "kern" or any of the others in your example.

My final conclusion was that text-rendering: optimizeLegibility; was convenient for both ligatures and kerning and I've used it ever since.

Always willing to reconsider, though, if you discover a few golden nuggets.
jackie_w is offline   Reply With Quote