Browse Source

Fix continue <-> break

master
dimti 5 years ago
parent
commit
c84a228399
  1. 6
      library/Zend/Pdf/FileParser/Font/OpenType.php

6
library/Zend/Pdf/FileParser/Font/OpenType.php

@ -898,7 +898,7 @@ abstract class Zend_Pdf_FileParser_Font_OpenType extends Zend_Pdf_FileParser_Fon
if ($language != 0) {
$this->_debugLog('Type 0 cmap tables must be language-independent;'
. ' language: %d; skipping', $language);
continue;
continue 2;
}
break;
@ -917,7 +917,7 @@ abstract class Zend_Pdf_FileParser_Font_OpenType extends Zend_Pdf_FileParser_Fon
case 0xa: // break intentionally omitted
case 0xc:
$this->_debugLog('Format: 0x%x currently unsupported; skipping', $format);
continue;
continue 2;
//$this->skipBytes(2);
//$cmapLength = $this->readUInt(4);
//$language = $this->readUInt(4);
@ -929,7 +929,7 @@ abstract class Zend_Pdf_FileParser_Font_OpenType extends Zend_Pdf_FileParser_Fon
default:
$this->_debugLog('Unknown subtable format: 0x%x; skipping', $format);
continue;
continue 2;
}
$cmapType = $format;
break;

Loading…
Cancel
Save