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 09-15-2024, 10:29 PM   #1
Seth H
Enthusiast
Seth H began at the beginning.
 
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.
Seth H is offline   Reply With Quote
Old 09-15-2024, 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,351
Karma: 6794938
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 offline   Reply With Quote
Advert
Old 09-18-2024, 04:54 AM   #3
Seth H
Enthusiast
Seth H began at the beginning.
 
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.
Seth H is offline   Reply With Quote
Old 09-29-2024, 08:49 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,305
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Seth H View Post
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.
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.
JSWolf is offline   Reply With Quote
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:19 PM.


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