Esempio n. 1
0
 private function marshal()
 {
     $newHeadRaw = TTF::marshalHead($this->head);
     $newHheaRaw = TTF::marshalHhea($this->hhea);
     $newMaxpRaw = TTF::marshalMAXP($this->maxp);
     $newHmtxRaw = $this->orgHmtx;
     //TTF::marshalHmtx($this->newHmtx['metrics'], $this->newHmtx['lsbs']);
     $newCmapRaw = TTF::marshalCmap($this->newCmap);
     $newLocaRaw = TTF::marshalLoca($this->newLoca, $this->newIndexToLocFormat, $this->newNumGlyphs);
     $newGlyfRaw = TTF::marshalGlyf($this->newGlyf);
     $newPostRaw = TTF::marshalPost($this->newPost);
     $tables = array();
     $tables['head'] = $newHeadRaw;
     $tables['hhea'] = $newHheaRaw;
     $tables['maxp'] = $newMaxpRaw;
     $tables['loca'] = $newLocaRaw;
     if ($this->orgCvt_Raw != null) {
         $tables['cvt '] = $this->orgCvt_Raw;
     }
     if ($this->orgPrepRaw != null) {
         $tables['prep'] = $this->orgPrepRaw;
     }
     $tables['glyf'] = $newGlyfRaw;
     $tables['hmtx'] = $newHmtxRaw;
     if ($this->orgFpgmRaw != null) {
         $tables['fpgm'] = $this->orgFpgmRaw;
     }
     /*$tables['cmap'] = $newCmapRaw;
     	if ($this->orgOS_2Raw != null) {
     	    $tables['OS/2'] = $this->orgOS_2Raw;
     	}
     	if ($this->orgNameRaw != null) {
     	    $tables['name'] = $this->orgNameRaw;
     	}*/
     $tables['post'] = $newPostRaw;
     return TTF::marshalAll($tables);
 }