Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom fonts in OpenType .otf format #2276

Open
bernhardreiter opened this issue Feb 13, 2019 · 6 comments
Open

Support for custom fonts in OpenType .otf format #2276

bernhardreiter opened this issue Feb 13, 2019 · 6 comments

Comments

@bernhardreiter
Copy link
Contributor

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 .

@Uzlopak
Copy link
Collaborator

Uzlopak commented Feb 13, 2019

That is a great Idea. Do you have already a roadmap in how to Implement it?

When can you provide a first pull request?

@bernhardreiter
Copy link
Contributor Author

@arasabbasi thanks for feedback on the idea!
Right now I don't have plans or a roadmap to implement this. It just would have been useful to have if it would have been there. Which I wanted to document. (Personally I had to go with different fonts for the very project I'm working on.)

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

@bernhardreiter
Copy link
Contributor Author

(As a feature request, I'd still say that it is relevant. But I don't know how this initiative deals with feature requests.)

@HackbrettXXX
Copy link
Collaborator

Let's leave it open ;)

@HackbrettXXX
Copy link
Collaborator

Bonus: Also add support for CFF glyph outline data (#2921).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants