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