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

[BUG]nil pointer dereference when EnableFontSubsetting un unused compositeFont #451

Closed
sify21 opened this issue Mar 29, 2021 · 5 comments
Closed

Comments

@sify21
Copy link

sify21 commented Mar 29, 2021

Description

When EnableFontSubsetting un unused compositeFont, the program panics with a nil pointer dereference, which causes the program shutdown.

Expected Behavior

ignore an enabled font that is not used

Actual Behavior

Steps to reproduce the behavior:

  1. create multiple fonts with model.NewCompositePdfFontFromTTF
  2. enable them with (*Creator).EnableFontSubsetting
  3. use one of the fonts, but not all of them
  4. See error
@github-actions
Copy link

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/

@gunnsth
Copy link
Contributor

gunnsth commented Mar 29, 2021

@sify21 Thanks for submitting the problem. Can you please attach all the files and code needed to reproduce the case?

@sify21
Copy link
Author

sify21 commented Mar 30, 2021

@gunnsth It's here

@3ace
Copy link

3ace commented Apr 8, 2021

@sify21 This issue should be fixed on the latest UniPDF v3.22.0

@sify21
Copy link
Author

sify21 commented Apr 9, 2021

Confirm it's fixed

@sify21 sify21 closed this as completed Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants