parallax/jsPDF

Support for custom fonts in OpenType .otf format

Open

#2.276 geöffnet am 13. Feb. 2019

Auf GitHub ansehen
 (6 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)JavaScript (4.596 Forks)batch import
Feature Requestdifficulty:hardhacktoberfest

Repository-Metriken

Stars
 (28.280 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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 .

Contributor Guide