02-08-2023, 05:48 AM | #1 |
Connoisseur
Posts: 61
Karma: 10
Join Date: Feb 2022
Device: None
|
Unexpected missing generic font family
Using the "Check book" function throws up the following error: "Unexpected missing generic font family (font-family-no-missing-generic-family-keyword)."
For the following CSS declaration: span.font {font-family: "KaiTi";} But the font is showing as available in the "Fonts" list; and "Manage fonts" also shows that the font is available and embedded. This is happening regularly with embedded fonts in downloaded ebooks. What is causing the error and how to resolve it? |
02-08-2023, 06:13 AM | #2 | |
the rook, bossing Never.
Posts: 11,564
Karma: 87456643
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Generic means something like:
span.font {font-family: "KaiTi", serif;} It's a stricter check for a fall-back font. It can be ignored if font is embedded and ereader or app uses embedded font. Some ereaders or apps won't use embedded fonts, or user doesn't select Publisher. However it's a very Western-centric idea (Latin-Roman families). Putting the wrong one, or having it at all only matters if your specific font isn't embedded and the reading renderer can't display it or user disables publisher setting. Old mobi, Kindle Apps on iOS and some Android apps for epubs never use embedded fonts. Common generic names: Quote:
If you don't what it will be read on, find the generic family the font KaiTi belongs to. This "error" baffled me the first time I saw it. Warning, while www.w3schools.com is your friend on CSS and HTML, not all of it applies to ebooks, which is more like "Print" CSS on a webpage. Keep it simple: Last edited by Quoth; 02-08-2023 at 06:16 AM. |
|
Advert | |
|
02-08-2023, 01:45 PM | #3 | |
Connoisseur
Posts: 61
Karma: 10
Join Date: Feb 2022
Device: None
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting Embedding font breaks font-family? | Calan | Amazon Kindle | 1 | 06-13-2020 11:48 AM |
Modification of the footer font family is missing in latest patches... | price | Kobo Developer's Corner | 4 | 03-01-2019 10:05 PM |
Is there really a need to specify a font-family? | spamis | ePub | 11 | 03-01-2017 06:38 AM |
Mobigen Sans-serif generic family in mobigen generated .mobi files | Symmetria | Kindle Formats | 7 | 12-10-2013 03:47 PM |