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