Skip to content

Commit

Permalink
Slighty improved *.afm font loading for compatibility reason
Browse files Browse the repository at this point in the history
  • Loading branch information
ole1986 committed Feb 10, 2020
1 parent 90ba6e9 commit fa15c8b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

only_commits:
files:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
]
},
"require": {
"php": ">=5.4.0"
"php": ">=5.6.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "2.*",
Expand Down
9 changes: 2 additions & 7 deletions data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Note that this document was generated using the demo script 'readme.php' which c
1<Changelog>

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>

Expand All @@ -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
Expand Down
Binary file modified readme.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
6 changes: 2 additions & 4 deletions src/Cpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit fa15c8b

Please sign in to comment.