View Single Post
Old 03-05-2020, 03:40 PM   #1
Enterio
Member
Enterio began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Oct 2019
Device: Kindle Paperwhite 7th gen
Forcing old-style figures from a font in Kindle

Is there any easy way to edit the CSS to force the Kindle to show
figures as old-style figures?

I have a solution, but it’s pretty radical. You’d have to find all the
figures or numbers in the file, include them in <span> brackets,
and use a class that uses:

Code:
font-variant:small-caps;
This isn’t very good, and I wouldn’t get that effect on other ebook
readers. Is there any solution available? The CSS code—

Code:
body {
  font-kerning: normal;
  font-variant: common-ligatures oldstyle-nums;
  font-feature-settings: "kern", "liga", "clig", "onum";
}
—seems to be working for EPUB3 (in Calibre), but not when converted to Kindle KFX.

Thanks for your help!
Enterio is offline   Reply With Quote