parallax/jsPDF

Support for custom fonts in OpenType .otf format

Open

#2,276 opened on 2019年2月13日

GitHub で見る
 (6 comments) (4 reactions) (0 assignees)JavaScript (4,596 forks)batch import
Feature Requestdifficulty:hardhacktoberfest

Repository metrics

Stars
 (28,280 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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 .

コントリビューターガイド