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

Otf support #215

Open
wildwestrom opened this issue Oct 10, 2021 · 1 comment
Open

Otf support #215

wildwestrom opened this issue Oct 10, 2021 · 1 comment

Comments

@wildwestrom
Copy link

wildwestrom commented Oct 10, 2021

I see that you can add ttf fonts with :ttf-name, but I have many fonts that are in otf format.
How easy/hard might it be to add support for opentype fonts?

Looks like this project uses com.github.librepdf/openpdf for its pdf creation and the classes they use don't have an implementation for otf.

com.lowagie.text.Element
com.lowagie.text.Font
com.lowagie.text.FontFactory

Openpdf seems to be forked from another project called iText-4.2.0.
The current successor, iText7, seems to support otf.
Adopting iText7 however, would require releasing this project under the GNU AGPL, not to mention having to deal with the API changes. Not ideal.

@yogthos
Copy link
Collaborator

yogthos commented Oct 11, 2021

I'd like to keep the license under LGPL, so iText7 wouldn't be a good fit unfortunately, and agree that the work in adapting the API could be significant as well. The best option would probably to convert the fonts to ttf.

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

2 participants