View Single Post
Old 03-07-2020, 02:42 AM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Enterio View Post
Is there any easy way to edit the CSS to force the Kindle to show figures as old-style figures?
Not really.

You can add the CSS there, and just hope future devices can render Oldstyle Figures (it won't hurt... any device that doesn't understand the CSS will just ignore it).

Here's the Oldstyle Figures code:

Code:
font-variant-numeric: oldstyle-nums;   /* high-level property          */
-moz-font-feature-settings: "onum";    /* low-level (old Firefox)      */
-webkit-font-feature-settings: "onum"; /* low-level (old Webkit)       */
font-feature-settings: "onum" on;      /* low-level (all new browsers) */
that I grabbed from Adobe's fantastic article: "Syntax for OpenType features in CSS".

Side Note: More of this was discussed in technical detail in my 2019 post in "Turn off ligatures (temporarily)". Also see the references to Microsoft's + Mozilla's OpenType documentation.

(Also, check out the rest of that thread... there's a ton of great information in there.)

Quote:
Originally Posted by Enterio View Post
This isn’t very good, and I wouldn’t get that effect on other ebook readers. Is there any solution available? The CSS code—
This code is more advanced CSS3, so many older devices won't support this. Also, it has to have OpenType fonts which have such alternates available.

Quote:
Originally Posted by Notjohn View Post
What's a "figure"? Indeed, what's an old-style number? [...] I can't picture a number of that sort.
Take a look at the post above, where I link to multiple articles with graphics showing what these advanced settings enable.

Here's Mozilla's "OpenType Font Features Guide" for example. They also have brief descriptions of what each setting is used for.

Last edited by Tex2002ans; 03-07-2020 at 02:47 AM.
Tex2002ans is offline   Reply With Quote