parallax/jsPDF

Support for custom fonts in OpenType .otf format

Open

#2276 aperta il 13 feb 2019

Vedi su GitHub
 (6 commenti) (4 reazioni) (0 assegnatari)JavaScript (4596 fork)batch import
Feature Requestdifficulty:hardhacktoberfest

Metriche repository

Star
 (28.280 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

This is a feature request. As of today jsPDF (v1.5.3) can work with custom fonts in the .ttf format, but not the .otf format.

Some fonts are only available in the .otf and a conversion maybe lossy. An example is https://github.com/libertinus-fonts/libertinus

So it would be cool if jsPDF would support custom fonts in .otf format directly. There is other javascript code under a Free Software license that could be inspected like https://github.com/foliojs/fontkit .

Guida contributor