09-15-2024, 11:29 PM | #1 |
Enthusiast
Posts: 37
Karma: 10
Join Date: Jan 2013
Location: Tasmania, Australia
Device: Kobo H2O
|
Unexpected Missing Generic Font Family (Style Sheet.css)
When using Run Check in Edit Book I sometimes come up with an "Unexpected Missing Generic Font Family (Style Sheet.css)” error.
I then use: Tools>Manage Fonts>Select Font>Remove Selected Font. This results in no error when Run Check is rerun. However sometimes there is only one font and to clear the error message this one and only font requires deleting. Therefore no fonts showing in style sheet or font folders. Yet the epub still displays correctly in Calibre and my ereader. Why therefore does the epub display correctly when Edit Book shows no font? I apologise if this is an obtuse question but I am really puzzled over it. |
09-15-2024, 11:46 PM | #2 | ||
Wizard
Posts: 1,352
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
eg. You have this in your css file... font-family: "ATSackersGothic"; You need to add a fallback font... font-family: "ATSackersGothic", sans-serif; The fallback font is the "Generic Font Family" the checker is asking for. Quote:
You can read more here... https://www.w3schools.com/css/css_font.asp |
||
09-18-2024, 05:54 AM | #3 |
Enthusiast
Posts: 37
Karma: 10
Join Date: Jan 2013
Location: Tasmania, Australia
Device: Kobo H2O
|
Karellen, many thanks. The link was very helpful, I’m working my way through the tutorial.
|
09-29-2024, 09:49 AM | #4 |
Resident Curmudgeon
Posts: 76,332
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Because the fonts are not properly embedded.. They need part of the ePub and then properly referenced in the CSS. Yes it's working int he ePub because on the Kobo, it's picking up the fonts from the names of the fonts the system has. But if you want to read the ePub say in the calibre viewer, the embedded font will not display.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unexpected missing generic font family | paperback | Editor | 2 | 02-08-2023 02:45 PM |
CSS Style sheet not loading | Gregg Bell | Sigil | 10 | 10-03-2019 04:37 PM |
How to remove CSS style sheet from epub files | Achromatic | Calibre | 2 | 01-01-2016 11:15 AM |
An example file of your CSS style sheet | roger64 | Writer2ePub | 6 | 04-11-2012 03:59 AM |
Missing style sheet | mauvais | Barnes & Noble NOOK | 3 | 12-05-2011 07:29 PM |