Update tcpdf_fonts.php

#813 Undefined offset: 32766

I get that bug when i import that font: http://www.dafont.com/es/accidental-presiden.font

https://sourceforge.net/p/tcpdf/bugs/813/
This commit is contained in:
Rafael Garcia 2017-08-28 12:44:08 +02:00 committed by GitHub
parent 95c5938aaf
commit d8e86f7136

View File

@ -665,7 +665,7 @@ class TCPDF_FONTS {
$glyphIdArray[$k] = TCPDF_STATIC::_getUSHORT($font, $offset);
$offset += 2;
}
for ($k = 0; $k < $segCount; ++$k) {
for ($k = 0; $k < $segCount - 1; ++$k) {
for ($c = $startCount[$k]; $c <= $endCount[$k]; ++$c) {
if ($idRangeOffset[$k] == 0) {
$g = ($idDelta[$k] + $c) % 65536;