Skip to content

Commit a8808b9

Browse files
committed
Merge branch 'subsetting_head_fix'
2 parents c36249c + f0972cf commit a8808b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/tcpdf_fonts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ public static function _getTrueTypeFontSubset($font, $subsetchars) {
13841384
}
13851385
// set checkSumAdjustment on head table
13861386
$checkSumAdjustment = 0xB1B0AFBA - self::_getTTFtableChecksum($font, strlen($font));
1387-
$font = substr($font, 0, $table['head']['offset'] + $offset + 8).pack('N', $checkSumAdjustment).substr($font, $table['head']['offset'] + $offset + 12);
1387+
$font = substr($font, 0, $table['head']['offset'] + $offset + 4).pack('N', $checkSumAdjustment).substr($font, $table['head']['offset'] + $offset + 8);
13881388
return $font;
13891389
}
13901390

0 commit comments

Comments
 (0)