Font_Header

Font header container.

Defined (1)

The class is defined in the following location(s).

/lib/dompdf/lib/php-font-lib/classes/Font_Header.php  
  1. abstract class Font_Header extends Font_Binary_Stream { 
  2. /** 
  3. * @var Font_TrueType 
  4. */ 
  5. protected $font; 
  6. protected $def = array(); 
  7.  
  8. public $data; 
  9.  
  10. public function __construct(Font_TrueType $font) { 
  11. $this->font = $font; 
  12.  
  13. public function encode() { 
  14. return $this->font->pack($this->def, $this->data); 
  15.  
  16. public function parse() { 
  17. $this->data = $this->font->unpack($this->def);