Closed LinkingYou closed 4 years ago
Please, merge!
Why is it taking so long to merge?
Please merge and release... !
Hm, the last commit of this package is almost two years ago :-(
I think someone needs to fork this
I think someone needs to fork this
Totally agree!
Please see: https://github.com/dompdf/dompdf/issues/2063
I'm using dompdf through laravel and having the same issue. One workaround I could find is:
vendor\phenx\php-font-lib\src\FontLib\AdobeFontMetrics.php:142
;@PhenX Can you kindly release master
to 0.5.2
? This will allow us to have it fixed in e.g. dompdf/dompdf
.
@jeliasson There are more things wrong with 7.4, see https://github.com/PhenX/php-font-lib/pull/77. Also it would be good to have 7.4 compatibility verified on travis, see https://github.com/PhenX/php-font-lib/pull/74. In my opinion it makes no sense to make a release until these are merged.
@enumag It would surely be nice to have all 7.4 issues fixed in the same release, but considering there are downstream packages that seems to benefit from this merge alone I think it would not hurt to throw in a minor release. Anyway, let's hope for a few merges and a release bump soon.
+1 for a hot fix (minor release); many integrations are (partially) broken by this issue.
That being said, I don't have the full picture of what's involved (or anyone's time schedule).
What @sandervanhooft said. I also would like to kindly ask for a commit just addressing this one issue, if in any way possible.
Following up on what @LinkingYou suggested, here is a donkey-patch based off @andrefedalto's contribution (31cad9151aa2a7070e73bc53dc2d104fdce7e0c6).
# Donkey patch vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php
cat vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php | sed "s/\$tree\W\=\W\$kern\[\"tree\"\]\;/\$tree \= is_array\(\$kern\) \? \$kern\[\"tree\"\]\ : null\;/g" > ./donkey-patch.php && mv ./donkey-patch.php vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php
# Verify output of donkey patch
cat vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php | grep '$tree = '
Hope it helps someone!
This helps @jeliasson
@jeliasson Thanks a lot! This really helped
Really hope this is permanently closed soon.
Hello, 0.5.2 already has this fix, nothing was pushed to master since its release. What can I do more ?
Had not noticed, left this thread before it was pushed. Thank you
This would fix the issue #75