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

unpack(): Type n: not enough input, need 2, have 0 #51

Closed
samhibberd opened this issue Jul 20, 2016 · 3 comments
Closed

unpack(): Type n: not enough input, need 2, have 0 #51

samhibberd opened this issue Jul 20, 2016 · 3 comments

Comments

@samhibberd
Copy link

samhibberd commented Jul 20, 2016

Hi There,

We are running into issues with our custom fonts (which strangely have been working before) when both installing automatically and using the dompdf load_fonts.php utility by @bsweeney

It looks like the error we hit is in php-font-lib, here is the console output:

Sams-iMac:dompdf samhibberd$ php load_font.php NMSyms /Users/samhibberd/Desktop/NMSyms.ttf

Unable to find bold face file.
Unable to find italic face file.
Unable to find bold_italic face file.
Copying /Users/samhibberd/Desktop/NMSyms.ttf to /Users/samhibberd/Sites/vasco-web/craft/plugins/vasco/vendor/dompdf/dompdf/lib/fonts/NMSyms.ttf...
Generating Adobe Font Metrics for /Users/samhibberd/Sites/vasco-web/craft/plugins/vasco/vendor/dompdf/dompdf/lib/fonts/NMSyms...

Warning: unpack(): Type n: not enough input, need 2, have 0 in /Users/samhibberd/Sites/vasco-web/craft/plugins/vasco/vendor/phenx/php-font-lib/src/FontLib/BinaryStream.php on line 183

Warning: unpack(): Type n: not enough input, need 2, have 0 in /Users/samhibberd/Sites/vasco-web/craft/plugins/vasco/vendor/phenx/php-font-lib/src/FontLib/BinaryStream.php on line 183

NB. I have removed some date() and strftime() warnings as they appear to have fallback values.

Any ideas??

Thanks.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@bsweeney
Copy link
Member

(also see #47)

@bsweeney
Copy link
Member

bsweeney commented Feb 1, 2020

closing, please subscribe to 47 for updates

@lucianoo6
Copy link

infelizmente esse erro e devido a um falta de caractere porem eu uso o @ pra suprimir o erro pois ainda não encontrei outra solução exemplo:

`$answerHeader    = @unpack('ntype/nclass/Nttl/nlength', $answerHeaderBin);`

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