View Single Post
Old 11-12-2016, 08:39 PM   #10
nabsltd
Fanatic
nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.
 
Posts: 528
Karma: 9529956
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
Quote:
Originally Posted by kovidgoyal View Post
There are many possible problems in font files that can prevent them from being matched. Impossible to say what the problem is with your particular fonts without access to the font files.
I just ran into the same thing, and it would really help if Calibre gave us more information about the font from within the book editor. You can double click on a font in the "Manage Fonts" dialog and get some info, but not all. The "Choose Font Family" from the Conversion->Common Options gives you more info (width, at least).

Also, Calibre needs to map the CSS font-weight names into numbers. I had the following fail to find a matching font:
Code:
.text-western {
	font-family: "Playbill", "Wanted", serif;
	font-size: 2em;
	font-stretch: extra-condensed;
	font-weight: medium;
}
When looking at the "Choose Font Family" dialog, I see the attached. This is a perfect match, and yet until I do the following, Calibre won't find the font:
Code:
.text-western {
	font-family: "Playbill", "Wanted", serif;
	font-size: 2em;
	font-stretch: extra-condensed;
	font-weight: 500;
}
Perhaps a feature to embed a font regardless of whether there is a "match" would be good. Calibre could just insert the font into the book and add a perfectly matching @font-face definition, and then just let us create CSS selectors that match that definition.
Attached Thumbnails
Click image for larger version

Name:	ChooseFontFamily.jpg
Views:	300
Size:	10.2 KB
ID:	152960  
nabsltd is offline   Reply With Quote