diff options
Diffstat (limited to 'php-tecnickcom-tc-lib-pdf-font-rpm.patch')
| -rw-r--r-- | php-tecnickcom-tc-lib-pdf-font-rpm.patch | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/php-tecnickcom-tc-lib-pdf-font-rpm.patch b/php-tecnickcom-tc-lib-pdf-font-rpm.patch index 4f76916..90cf22f 100644 --- a/php-tecnickcom-tc-lib-pdf-font-rpm.patch +++ b/php-tecnickcom-tc-lib-pdf-font-rpm.patch @@ -1,6 +1,32 @@ +diff -up ./src/Load.php.rpm ./src/Load.php +--- ./src/Load.php.rpm 2026-04-11 18:57:51.000000000 +0200 ++++ ./src/Load.php 2026-04-14 12:16:20.395083087 +0200 +@@ -359,6 +359,10 @@ abstract class Load + { + $dir = new Dir(); + $dirs = ['']; ++ $glb = \glob('/usr/share/php-tecnickcom-tc-lib-pdf-font/*', GLOB_ONLYDIR); ++ if ($glb !== false) { ++ $dirs = [...$dirs, ...$glb]; ++ } + if (\defined('K_PATH_FONTS')) { + $dirs[] = K_PATH_FONTS; + $glb = \glob(K_PATH_FONTS . DIRECTORY_SEPARATOR . '*', GLOB_ONLYDIR); +diff -up ./test/OutputTest.php.rpm ./test/OutputTest.php +--- ./test/OutputTest.php.rpm 2026-04-14 12:18:43.369505233 +0200 ++++ ./test/OutputTest.php 2026-04-14 12:19:26.395635970 +0200 +@@ -75,7 +75,7 @@ class OutputTest extends TestUtil + $encrypt = new \Com\Tecnick\Pdf\Encrypt\Encrypt(); + $output = new \Com\Tecnick\Pdf\Font\Output($fonts, $objnum, $encrypt); + +- $this->assertEquals(37, $output->getObjectNumber()); ++ $this->assertTrue($output->getObjectNumber() > 30); + + $this->assertNotEmpty($output->getFontsBlock()); + diff -up ./util/bulk_convert.php.rpm ./util/bulk_convert.php ---- ./util/bulk_convert.php.rpm 2025-12-05 07:31:19.501111222 +0100 -+++ ./util/bulk_convert.php 2025-12-05 07:33:19.462370628 +0100 +--- ./util/bulk_convert.php.rpm 2026-04-11 18:57:51.000000000 +0200 ++++ ./util/bulk_convert.php 2026-04-14 12:16:20.395188715 +0200 @@ -86,7 +86,7 @@ if (!\is_writable($options['outpath'])) exit(2); } @@ -20,8 +46,8 @@ diff -up ./util/bulk_convert.php.rpm ./util/bulk_convert.php $fontdir = \array_diff(\scandir($ttfdir), array('.', '..', '.git')); diff -up ./util/convert.php.rpm ./util/convert.php ---- ./util/convert.php.rpm 2025-12-05 07:31:19.501170686 +0100 -+++ ./util/convert.php 2025-12-05 07:33:51.032586961 +0100 +--- ./util/convert.php.rpm 2026-04-11 18:57:51.000000000 +0200 ++++ ./util/convert.php 2026-04-14 12:16:20.395243397 +0200 @@ -224,7 +224,7 @@ if (empty($options['fonts'])) { $convert_errors = 0; $convert_success = 0; |
