View Single Post
Old 07-24-2021, 04:20 PM   #7
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,915
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 hobnail View Post
If it's the @supports at the end of your css file that's causing the problem I'd just use the font-variant stuff without checking. I don't know if anything goes wrong if the font doesn't support them. For example, here's what I have in my template.epub file's css for headers (this isn't everything; spacing stuff taken out).

Code:
    -ms-hyphens: none;
    -moz-hyphens: none;
    -webkit-hyphens: none;
    -epub-hyphens: none;
    adobe-hyphenate: none;
    break-inside: avoid;
    break-after: avoid;
    font-feature-settings: "kern", "liga", "clig", "lnum", "pnum";
    font-variant: common-ligatures lining-nums proportional-nums;
    hyphens: none;
    page-break-after: avoid;
    page-break-inside: avoid;
For reasons I no longer remember (I probably just copied this from somewhere without trying to understand it) my css for body has slightly different stuff; oldstyle-nums instead of lining-nums.

Code:
    font-feature-settings: "kern", "liga", "clig", "onum", "pnum";
    font-kerning: normal;
    font-variant: common-ligatures oldstyle-nums proportional-nums;
    text-rendering: optimizeLegibility;
Those font features settings won't work with the version of RMSDK Kobo is using. But, by default, RMSDK supports ligatures.
JSWolf is offline   Reply With Quote