06-22-2023, 02:39 PM | #1 |
Evangelist
Posts: 461
Karma: 7897546
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
KFX and OpenType features
I use Adobe's Garamond Premier as my base reading font on a Kindle Paperwhite 11, and the difference between KF8 and KFX files on the device led me to do a bit of research.
First, the CSS attribute font-feature-settings is completely ignored by the Kindle renderer. It might even be completely stripped when the KFP format is created by Kindle Previewer. Since the docs don't say it is not supported, this isn't really a surprise. What is a surprise is that Kindle readers seem to have the following (or it's equivalent) coded into their user agent stylesheet: Code:
font-feature-settings: "liga" 1, "calt" 1; It also exposes a bug in the OpenType features handing that only shows up every so often, where the Kindle renderer appears to iterate through the "calt" ruleset until there is no change. This is not correct behavior according the OpenType standard, and results in some really odd characters at times in Garamond Premier. For example, in the italic font, there are swashes, and the alternative for uppercase "Q" gets converted to the long tail version, which has it's own alternate that is the swash "Q", which looks like a "2". Last, assuming a font has small capital glyphs and a "smcp" ruleset, font-variant: small-caps should do exactly the same thing as font-feature-settings: "smcp" 1, and it mostly does on Kindle. The exception is the following CSS: Code:
font-variant: small-caps; text-transform: lowercase; Code:
font-variant: small-caps; text-transform: lowercase; font-feature-settings: "onum" 1; |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
understanding ligatures in OpenType fonts | arslonga | Conversion | 0 | 11-25-2022 02:58 PM |
KFX to KFX to remove DRM | Tomifonication | Conversion | 12 | 08-09-2018 02:32 PM |
Touch HD, Future features or dead features? | ElWorm | PocketBook | 4 | 02-07-2018 12:36 PM |
Opentype font features | DomesticExtremis | ePub | 7 | 06-29-2014 06:25 PM |
Touch ePub: embedded TrueType (TTF) vs OpenType (OTF) | seanos | Barnes & Noble NOOK | 0 | 07-26-2013 03:43 AM |