예제 #1
0
 protected function _parse()
 {
     parent::_parse();
     if ($this->data["magicNumber"] != 0x5f0f3cf5) {
         throw new Exception("Incorrect magic number (" . dechex($this->data["magicNumber"]) . ")");
     }
 }
예제 #2
0
    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();
 }