Merge pull request #298 from nullx2/fix-fontspace

Fix font_space
This commit is contained in:
Nicola Asuni 2020-12-09 07:15:50 +00:00 committed by GitHub
commit 456b794f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6489,7 +6489,7 @@ class TCPDF {
// *** very slow ***
$l = $this->GetArrStringWidth(TCPDF_FONTS::utf8Bidi(array_slice($chars, $j, ($i - $j)), '', $this->tmprtl, $this->isunicode, $this->CurrentFont));
} else {
$l += $this->GetCharWidth($c);
$l += $this->GetCharWidth($c, ($i+1 < $nb));
}
if (($l > $wmax) OR (($c == 173) AND (($l + $tmp_shy_replacement_width) >= $wmax))) {
if (($c == 173) AND (($l + $tmp_shy_replacement_width) > $wmax)) {