View Single Post
Old 11-13-2016, 11:26 PM   #26
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,431
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And as promised, here is a commit implementing a more informative message when embed fonts fails to find a matching font.

https://github.com/kovidgoyal/calibr...9267c29b4982da

For example, in the case of Calibri Light that Divingduck attached, the message looks like:
Code:
Failed to find a font in the "Calibri Light" family matching the CSS font specification:

* font-weight: 400
* font-style: normal
* font-stretch: normal

Available fonts in the family are:

/usr/share/fonts/vista/CALIBRIL.TTF

* font-weight: 300
* font-style: normal
* font-stretch: normal


/usr/share/fonts/vista/CALIBRILI.TTF

* font-weight: 300
* font-style: italic
* font-stretch: normal
kovidgoyal is online now   Reply With Quote