question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for custom fonts in OpenType .otf format

See original GitHub issue

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 .

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Uzlopakcommented, 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?

0reactions
HackbrettXXXcommented, Oct 5, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for custom fonts in OpenType .otf format #2276 - GitHub
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...
Read more >
Adding a Custom Font to Your App - Apple Developer
Your app isn't limited to the custom fonts provided by iOS. If your company has its ... You can add True Type Font...
Read more >
TTF/OTF - TrueType and OpenType font support - CanIUse
TTF /OTF - TrueType and OpenType font support · Global · Chrome · Edge * · Safari · Firefox · Opera · IE...
Read more >
How to use Open Type Font (OTF) in Flutter? - Stack Overflow
You can refer to the guide on how to use custom fonts in flutter for ... Note: OTF is now officially supported, see...
Read more >
How to Use Any Font You Like with CSS3 - Webdesigner Depot
You can use EOT (Embedded OpenType) files for Internet Explorer and either OTF (OpenType) or TTF (TrueType) for the rest.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found