Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 10:29 PM   #1
Seth H
Enthusiast
Seth H began at the beginning.
 
Posts: 36
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.
Seth H is offline   Reply With Quote
Old Yesterday, 10:46 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,301
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by Seth H View Post
When using Run Check in Edit Book I sometimes come up with an "Unexpected Missing Generic Font Family (Style Sheet.css)” error.
When specifying a font, you should also include a fallback font.
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:
Originally Posted by Seth H View Post
Why therefore does the epub display correctly when Edit Book shows no font?
You don't need to embed any fonts in your ebook as the ereader will just use the default fonts installed on the ereader.

You can read more here... https://www.w3schools.com/css/css_font.asp
Karellen is online now   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected missing generic font family paperback Editor 2 02-08-2023 01:45 PM
CSS Style sheet not loading Gregg Bell Sigil 10 10-03-2019 03:37 PM
How to remove CSS style sheet from epub files Achromatic Calibre 2 01-01-2016 10:15 AM
An example file of your CSS style sheet roger64 Writer2ePub 6 04-11-2012 02:59 AM
Missing style sheet mauvais Barnes & Noble NOOK 3 12-05-2011 06:29 PM


All times are GMT -4. The time now is 01:41 AM.


MobileRead.com is a privately owned, operated and funded community.