'); $this->_out('/Widths '.($this->n+1).' 0 R'); $this->_out('/FontDescriptor '.($this->n+2).' 0 R'); if($font['enc']) { if(isset($font['diff'])) $this->_out('/Encoding '.($nf+$font['diff']).' 0 R'); else $this->_out('/Encoding /WinAnsiEncoding'); } } $this->_out('>>'); $this->_out('endobj'); if($font['type']!='core') { //Widths $this->_newobj(); $cw=&$font['cw']; $s='['; for($i=32;$i<=255;$i++) $s.=$cw[chr($i)].' '; $this->_out($s.']'); $this->_out('endobj'); //Descriptor $this->_newobj(); $s='<</Type /FontDescriptor /FontName /'.$name; foreach($font['desc'] as $k=>$v) $s.=' /'.$k.' '.$v; $file=$font['file']; if($file) $s.=' /FontFile'.($font['type']=='Type1' ? '' : '2').' '.$this->FontFiles[$file]['n'].' 0 R'; $this->_out($s.'>>'); $this->_out('endobj'); } } } }
function _putType0($font) { //Type0 $this->_out('/Subtype /Type0'); $this->_out('/BaseFont /'.$font['name'].'-'.$font['CMap']); $this->_out('/Encoding /'.$font['CMap']); $this->_out('/DescendantFonts ['.($this->n+1).' 0 R]'); $this->_out('>>'); $this->_out('endobj'); //CIDFont $this->_newobj(); $this->_out('<</Type /Font'); $this->_out('/Subtype /CIDFontType0'); $this->_out('/BaseFont /'.$font['name']); $this->_out('/CIDSystemInfo <</Registry (Adobe) /Ordering ('.$font['registry']['ordering'].') /Supplement '.$font['registry']['supplement'].'>>'); $this->_out('/FontDescriptor '.($this->n+1).' 0 R'); $W='/W [1 ['; foreach($font['cw'] as $w) $W.=$w.' '; $this->_out($W.']]'); $this->_out('>> 上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页 |