View Single Post
Old 11-25-2021, 12:24 PM   #7
Liudprand
Zealot
Liudprand began at the beginning.
 
Posts: 133
Karma: 10
Join Date: Nov 2021
Device: Kobo Libra 2
Quote:
Originally Posted by hobnail View Post
In my standard stylesheet.css I use when redoing a Project Gutenberg book for the body tag I have
Code:
body {
    border: 0;
    font-feature-settings: "kern", "liga", "clig", "onum", "pnum";
    font-kerning: normal;
    font-style: normal;
    font-variant: common-ligatures oldstyle-nums proportional-nums;
    hyphens: auto;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    width: auto;
}
I don't remember which ones are needed for old style figures but probably the font-variant: oldstyle-nums and the font-feature-settings: onum are what's needed.
Thanks for this. I'm not familiar enough with CCS to know what I'm doing, but I'll look into it...
Liudprand is offline   Reply With Quote