View Single Post
Old 09-27-2020, 02:27 PM   #2
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,590
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Rand Brittain View Post
I'm making an ePub using the Vollkorn font, and I wound up deciding to use the semi-bold version instead of the bold version for my <strong> text, so I made my @font-face declarations as usual.

However, Calibre is throwing up an error because the proper font-family name for the semi-bold fonts is "Vollkorn Semi-Bold".

This is probably a very minor problem but I do want to get it cleared up.

What's the best practices way to declare all these fonts and tell the <body> to use them to get rid of the error?
The error message is correct. If you look at the font, the font-family name is Volkorn SemiBold. To modify this, you can edit the font family name. I used FontForge but there are several other free options. See the attached epub which calibre seems to be happy with. Oddly, calibre internal check is the only one I've run into that complains about the internal font family not matching. EpubCheck does not seem to care.
Attached Files
File Type: epub Font Tester V3 - epub - Ann Onymous.epub (13.36 MB, 201 views)

Last edited by DNSB; 09-27-2020 at 02:29 PM.
DNSB is offline   Reply With Quote