|
@@ 571-578 (lines=8) @@
|
| 568 |
|
case 2: { // Format 2: High-byte mapping through table |
| 569 |
|
$offset += 4; // skip length and version/language |
| 570 |
|
$numSubHeaders = 0; |
| 571 |
|
for ($i = 0; $i < 256; ++$i) { |
| 572 |
|
// Array that maps high bytes to subHeaders: value is subHeader index * 8. |
| 573 |
|
$subHeaderKeys[$i] = (TCPDF_STATIC::_getUSHORT($font, $offset) / 8); |
| 574 |
|
$offset += 2; |
| 575 |
|
if ($numSubHeaders < $subHeaderKeys[$i]) { |
| 576 |
|
$numSubHeaders = $subHeaderKeys[$i]; |
| 577 |
|
} |
| 578 |
|
} |
| 579 |
|
// the number of subHeaders is equal to the max of subHeaderKeys + 1 |
| 580 |
|
++$numSubHeaders; |
| 581 |
|
// read subHeader structures |
|
@@ 1036-1043 (lines=8) @@
|
| 1033 |
|
case 2: { // Format 2: High-byte mapping through table |
| 1034 |
|
$offset += 4; // skip length and version/language |
| 1035 |
|
$numSubHeaders = 0; |
| 1036 |
|
for ($i = 0; $i < 256; ++$i) { |
| 1037 |
|
// Array that maps high bytes to subHeaders: value is subHeader index * 8. |
| 1038 |
|
$subHeaderKeys[$i] = (TCPDF_STATIC::_getUSHORT($font, $offset) / 8); |
| 1039 |
|
$offset += 2; |
| 1040 |
|
if ($numSubHeaders < $subHeaderKeys[$i]) { |
| 1041 |
|
$numSubHeaders = $subHeaderKeys[$i]; |
| 1042 |
|
} |
| 1043 |
|
} |
| 1044 |
|
// the number of subHeaders is equal to the max of subHeaderKeys + 1 |
| 1045 |
|
++$numSubHeaders; |
| 1046 |
|
// read subHeader structures |