1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
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 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);
}
-$ttfdir = __DIR__.'/vendor/tecnickcom/tc-font-mirror/';
+$ttfdir = dirname(__DIR__).'/tc-font-mirror-2.1.0/';
if (!is_dir($ttfdir)) {
\fwrite(STDERR, 'ERROR: The '.$ttfdir.' directory is empty, please execute \'make build\' before this command.'."\n\n");
exit(3);
@@ -98,7 +98,7 @@ if (!is_dir($ttfdir)) {
$convert_errors = 0;
$convert_success = 0;
-require_once (\dirname(__DIR__).'/vendor/autoload.php');
+require_once (dirname(__DIR__).'/src/autoload.php');
$fontdir = \array_diff(\scandir($ttfdir), array('.', '..', '.git'));
diff -up ./util/convert.php.rpm ./util/convert.php
--- ./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;
-require_once (\dirname(\dirname(__DIR__)).'/vendor/autoload.php');
+require_once ('/usr/share/php/Com/Tecnick/Pdf/Font/autoload.php');
foreach ($options['fonts'] as $font) {
try {
|