View Single Post
Old 09-18-2023, 06:48 AM   #1
WV-Mike
Connoisseur
WV-Mike began at the beginning.
 
Posts: 74
Karma: 10
Join Date: Jul 2023
Device: None
CSS font error in Calibe

-- CSS font error in Calibe --

Greetings,
I validated again and I still get the same error in Calibre.
The font displays as expected yet I keep getting the font related error, but only in Calibre.
Can anyone shed any light on this?
Thanks,
WV-Mike

====
Pagina:
Validating using EPUB version 2.0.1 rules.
(https://github.com/w3c/epubcheck)
September 18, 2023 6:20:38 AM EDT
No errors or warnings detected. EPUB is valid!

=====
https://www.ebookit.com/tools/bp/Bo/...epub-validator
No errors reported

=====
Calbre
OEBPS/Styles/mnc_toc.css
The font family name specified in the CSS @font-face rule: "Fontin-SmallCaps" does not match the font name inside the actual font file: "Fontin SmallCaps". This can cause problems in some viewers. You should change the CSS font name to match the actual font name.
Change the font name Fontin-SmallCaps to Fontin SmallCaps everywhere
====

Here is the font file:
C:\Users\defaultuser0.LAPTOP-5UQ4L9LI.000\AppData\Local\sigil-ebook\sigil\workspace\Sigil-mEHozG\OEBPS\Fonts\Fontin-SmallCaps.otf

Here is the CSS:
h1 {
font-family: "Fontin-SmallCaps", sans-serif;
font-size: 1.3em;
font-weight: bold;
text-align: center;
margin-top: 0;
}
@font-face {
font-family: "Fontin-SmallCaps";
font-weight: bold;
font-style: normal;
font-variant: small-caps;
src: url(../Fonts/Fontin-SmallCaps.otf);
}
WV-Mike is offline   Reply With Quote