View Single Post
Old 09-07-2023, 02:55 PM   #14
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,873
Karma: 169716272
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by WV-Mike View Post
However, I still have a problem with the font. In your version the SmallCaps are displayed. In mine they are not.
I will work on this.

And, all of the original problems I reported are still there.
So, it validates with no errors but it made no difference as it relates to what I was hoping to correct.

Now what do I do?

Many thanks to all !!

WV-Mike
That's why I mentioned the missing '}'. In the original version, the stylesheet ended without the closing }. Adding the } on a new line after src: url(../Fonts/Fontin-SmallCaps.otf); fixed the issue for me.

Code:
@font-face {
    font-family: 'SmallCaps';
    font-weight: bold;
    font-style: normal;
    font-variant: small-caps;
    src: url(../Fonts/Fontin-SmallCaps.otf);
Quote:
@font-face {
font-family: 'SmallCaps';
font-weight: bold;
font-style: normal;
font-variant: small-caps;
src: url(../Fonts/Fontin-SmallCaps.otf);
}
I would suggest switching to either Sigil with Doitsu's epubcheck plugin or calibre's e-book editor again with the epubcheck plugin. This allows you to click on the error line number to go to the error. If your Pagina epub checker is not detecting that stylesheet error though epubcheck in both Sigil and calibre's e-book editor are not happy with it, you may to update pagina epub checker. From their webpage, you need 2.1.0 to use epubcheck 5.1.0.

I've attached an image of checking your original epub with pagina 2.1.0. The CSS-008 error at the end of the error list is that missing } which likely makes the font identification impossible.
Attached Thumbnails
Click image for larger version

Name:	pagina_epubcheck_errors.png
Views:	201
Size:	92.3 KB
ID:	203617  
DNSB is offline   Reply With Quote