@@ 383-394 (lines=12) @@ | ||
380 | // tables array |
|
381 | $table = array(); |
|
382 | // ---------- get tables ---------- |
|
383 | for ($i = 0; $i < $numTables; ++$i) { |
|
384 | // get table info |
|
385 | $tag = substr($font, $offset, 4); |
|
386 | $offset += 4; |
|
387 | $table[$tag] = array(); |
|
388 | $table[$tag]['checkSum'] = TCPDF_STATIC::_getULONG($font, $offset); |
|
389 | $offset += 4; |
|
390 | $table[$tag]['offset'] = TCPDF_STATIC::_getULONG($font, $offset); |
|
391 | $offset += 4; |
|
392 | $table[$tag]['length'] = TCPDF_STATIC::_getULONG($font, $offset); |
|
393 | $offset += 4; |
|
394 | } |
|
395 | // check magicNumber |
|
396 | $offset = $table['head']['offset'] + 12; |
|
397 | if (TCPDF_STATIC::_getULONG($font, $offset) != 0x5F0F3CF5) { |
|
@@ 960-971 (lines=12) @@ | ||
957 | // tables array |
|
958 | $table = array(); |
|
959 | // for each table |
|
960 | for ($i = 0; $i < $numTables; ++$i) { |
|
961 | // get table info |
|
962 | $tag = substr($font, $offset, 4); |
|
963 | $offset += 4; |
|
964 | $table[$tag] = array(); |
|
965 | $table[$tag]['checkSum'] = TCPDF_STATIC::_getULONG($font, $offset); |
|
966 | $offset += 4; |
|
967 | $table[$tag]['offset'] = TCPDF_STATIC::_getULONG($font, $offset); |
|
968 | $offset += 4; |
|
969 | $table[$tag]['length'] = TCPDF_STATIC::_getULONG($font, $offset); |
|
970 | $offset += 4; |
|
971 | } |
|
972 | // check magicNumber |
|
973 | $offset = $table['head']['offset'] + 12; |
|
974 | if (TCPDF_STATIC::_getULONG($font, $offset) != 0x5F0F3CF5) { |