diff --git a/.travis.yml b/.travis.yml index c11180b..1f6401b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,8 @@ php: - 7.0 - 7.1 - 7.2 + - 7.3 + - 7.4 only_commits: files: diff --git a/composer.json b/composer.json index 7d3c126..d691ef1 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ ] }, "require": { - "php": ">=5.4.0" + "php": ">=5.6.0" }, "require-dev": { "squizlabs/php_codesniffer": "2.*", diff --git a/data.txt b/data.txt index 9e77697..5d10573 100644 --- a/data.txt +++ b/data.txt @@ -30,7 +30,8 @@ Note that this document was generated using the demo script 'readme.php' which c 1 3<0.12.60> -- compatibility for php 7.4 +- Compatibility for php 7.4 using PR #136 +- Slighty improved *.afm font loading for compatibility reason 3<0.12.58> @@ -53,12 +54,6 @@ Note that this document was generated using the demo script 'readme.php' which c - Image quality never greater 75% in addImage method #130 - Possible fix for infinite loop when a word does not fit cell #129 -3<0.12.54> - -- Fixed issue #127 -- Recovered textCol option in ezTable #127 -- Slightly amended table-enhancements example - Please refer to https://github.com/rospdf/pdf-php/releases for all previous changes #NP diff --git a/readme.pdf b/readme.pdf index f840f46..e748b9f 100644 Binary files a/readme.pdf and b/readme.pdf differ diff --git a/readme.php b/readme.php index bd7a121..573b297 100644 --- a/readme.php +++ b/readme.php @@ -72,7 +72,7 @@ public function dots($info) // this code has been modified to use ezpdf. $project_url = "https://github.com/rospdf/"; -$project_version = "Version 0.12.58"; +$project_version = "Version 0.12.60"; $pdf = new Creport('a4', 'portrait', 'none', null); diff --git a/src/Cpdf.php b/src/Cpdf.php index f82497f..9131acd 100644 --- a/src/Cpdf.php +++ b/src/Cpdf.php @@ -154,7 +154,7 @@ class Cpdf * * @var int default is 86400 which is 1 day */ - public $cacheTimeout = 86400; + public $cacheTimeout = 0; /** * Used to identify any space char for line breaks (either in Unicode or ANSI) @@ -2017,9 +2017,7 @@ protected function openFont($font) $width = floatval($m[2]); if ($c >= 0) { - if ($c != hexdec($n)) { - $cachedFont['codeToName'][$c] = $n; - } + $cachedFont['codeToName'][$c] = $n; $cachedFont['C'][$c] = $width; $cachedFont['C'][$n] = $width; } else {