Exemplo n.º 1
0
 protected function _parse()
 {
     parent::_parse();
     if ($this->data["magicNumber"] != 0x5f0f3cf5) {
         throw new Exception("Incorrect magic number (" . dechex($this->data["magicNumber"]) . ")");
     }
 }
Exemplo n.º 2
0
 function _encode()
 {
     $font = $this->getFont();
     $this->data["numOfLongHorMetrics"] = count($font->getSubset());
     return parent::_encode();
 }
Exemplo n.º 3
0
 function _encode()
 {
     $font = $this->getFont();
     $this->data["numGlyphs"] = count($font->getSubset());
     return parent::_encode();
 }