View Single Post
Old 06-27-2024, 03:47 AM   #6
Kreeblah
Junior Member
Kreeblah began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2024
Device: Kobo Sage
Quote:
Originally Posted by theducks View Post
bold is the old way (and older readers want that as well as EPUB2 )

the numbers are the newer way of specifying font-weight (I have seen a chart. there are more number levels than the old)
Each font has an internal table (normal, bold, italic, bold-italic). That is 4 font files to make up the complete FAMILY (not al faces have all 4, so substitutes are sometimes called out and the check will complain that the names do not match the Family
Ah, good to know. I knew that the labels mapped to numbers (and that 700 and bold were equivalent), but I was confused about where it was getting the specifically numeric value from. Maybe Calibre just converts the text labels to numeric values, though, if that's the newer standard.

Quote:
Originally Posted by Karellen View Post
How did you do this?
Did you hack the epub and manually add files to it or did you use the Calibre Editor and select Add/Import new files?

You could also install a font program, like Sourceforge and check what is specified in the font file.
I unzipped the epub and copied the font files to ~/.fonts, removed them from the directory tree, the references from the manifest, and the locations to the font files from the stylesheet (plus fixed up the font names in the stylesheet based on the internal font names), then used the Polish Books function to embed them.

I've been using FontForge to check things with fonts in order to do things like get the font family name (because it was very wrong in the stylesheet originally for this font; it was listed as the font filename rather than the font family name). I've also been able to inspect other relevant properties with it, too (see the attachment for a screenshot).

Quote:
Originally Posted by lomkiri View Post
Menu View / Live CSS,
Then, click anywhere in the text you want to analyze (in the edition window, not in the preview)
That's good to know, but it would really help if I knew where the problem text is in the book in order to inspect that to see what's going on. That's the issue, though. I don't know where the book is calling for a style that comes out as what Calibre is determining is different than the actual font since the polish books function doesn't really report much other than that something didn't match somewhere. Something must be overriding some of the CSS somewhere, but it'd be helpful if Calibre could tell me where the mismatched font is being used.

If that's not currently an option, though, this should be able to get me the info I need. It'll just take me a while to find where every use of every relevant element is.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-06-27 at 00.26.54.png
Views:	355
Size:	805.9 KB
ID:	209192  
Kreeblah is offline   Reply With Quote