View Single Post
Old 10-19-2014, 07:05 AM   #257
mandy314
Connoisseur
mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 200092
Join Date: Mar 2014
Device: kindle pw1
Ok - this would only make sense with pre 5.4 FW on the PW1 (or older devices) - but wouldn't it be nice to map custom fonts to generic font families?

Generic font-families in CSS are
- serif - mapped to Caecilia
- sans-serif - mapped to Helvetica
- cursive - no mapping
- fantasy - no mapping
- monospace - mapped to KindleBlackboxC

So - afaik - not all generic font-families are supported on the Kindle.
Lately in well-done ebooks the use of generic font-families seems more common. So you may have chapter headings with font-family="some embedded font",sans-serif, the main text with font-family=serif and some handwritten letters with font-family="a second embedded font",cursive.
When you select Publisher Font with such a book you get the embedded font for the headings, Caecilia (arghh) for the main text and the second embedded font for the letters. When you de-select Publisher Font you get the whole text with the font ticked (font-family is ignored).

I tried to add alias sections to the alternate.conf from the "fontconfig"-hack - but that didn't work for me. I'm not able to do all the usb-networking and scripting. But I can see browser-like settings for the mapping as a good thing. Perhaps even a hack for the default font the Kindle falls back on if - this would be Helvetica with FW 5.3.9 - there isn't a font-family set for the main text in the above mentioned example and Publisher Font is selected.

Sadly can't do much more than make the suggestion.
mandy314 is offline   Reply With Quote