Subsets of fonts with CSS set to uppercase or small-caps variants
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Calibre: 2.54.0
After subsetting my embedded fonts, font-characters are not displayed as the embedded font if the related characters are set in the CSS to "font-variant: small-caps" or "text-transform: uppercase".
That's probably because the subset-function does not check if the fonts are set to uppercase or small-caps in the current CSS and so it includes only the regular small variants, as they are written in the eBook.
Imho the subset-function should regard those special CSS styles, cause right now you either don't want to use the subset in that case or you need to hard-edit all letters to uppercase, if you want the subset to contain all the right letters.
Maybe the function could get a switch for the user to chose if the subset should look out for CSS-styles. Thanks in advance.
font-variant is based on substitution rules in the GSUB table of the
font file, since those rules are automatically parsed and all related
glyphs included automatically, it should work already. If not, then you
need to atatch a file demonstrating the problem.
As for text-transform, sure support for it can be added, however, why on
earth would anyone want to use text-transform in an ebook -- why not
just include the correct text in the first place? Given that
text-transform is unlikely to be supported across all reader
implementations, using it is a pretty bad idea.
status incomplete