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

Cannot install TTF fonts #446

Closed
nhannh23 opened this issue Mar 25, 2022 · 1 comment
Closed

Cannot install TTF fonts #446

nhannh23 opened this issue Mar 25, 2022 · 1 comment
Assignees
Labels

Comments

@nhannh23
Copy link

Thanks for your dedication as always.

I can install a lot of TTF fonts normally, but the ones from this repository.
https://github.com/googlefonts/morisawa-biz-ud-gothic/tree/main/fonts/ttf

I got this error

unexpected panic attack: runtime error: slice bounds out of range [:1471273124] with capacity 201732

I think it is from here
https://github.com/pdfcpu/pdfcpu/blob/master/pkg/font/install.go#L478-L484

I had a hard time trying to understand the meaning of the variables.
Please help. Thank you very much.

@hhrutter
Copy link
Collaborator

This is fixed with latest commit.

adamgreenhall added a commit to adamgreenhall/pdfcpu that referenced this issue Apr 28, 2022
* Fix pdfcpu#442, pdfcpu#443

* Fix pdfcpu#437

* Fix pdfcpu#434

* Fix pdfcpu#429

* Fix pdfcpu#438

* Fix pdfcpu#440

* Fix pdfcpu#380

* Fix pdfcpu#446

* Add Fedora instructions (pdfcpu#439)

* Fix pdfcpu#389

* Fix pdfcpu#357, pdfcpu#451

* Fix free list validation

* Cleanup

* Fix pdfcpu#453

* Fix pdfcpu#457

* Revert "Revert "Fix pdfcpu#385""

This reverts commit bbe8e25.

Co-authored-by: Horst Rutter <hhrutter@gmail.com>
Co-authored-by: Fabio Alessandro Locati <77888+Fale@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants