Font_Table_name_Record

Font table name record.

Defined (1)

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

/lib/dompdf/lib/php-font-lib/classes/Font_Table_name_Record.php  
  1. class Font_Table_name_Record extends Font_Binary_Stream { 
  2. public $platformID; 
  3. public $platformSpecificID; 
  4. public $languageID; 
  5. public $nameID; 
  6. public $length; 
  7. public $offset; 
  8. public $string; 
  9.  
  10. public static $format = array( 
  11. "platformID" => self::uint16,  
  12. "platformSpecificID" => self::uint16,  
  13. "languageID" => self::uint16,  
  14. "nameID" => self::uint16,  
  15. "length" => self::uint16,  
  16. "offset" => self::uint16,  
  17. ); 
  18.  
  19. public function map($data) { 
  20. foreach($data as $key => $value) { 
  21. $this->$key = $value; 
  22.  
  23. public function getUTF8() { 
  24. return $this->string; 
  25.  
  26. public function getUTF16() { 
  27. return Font::UTF8ToUTF16($this->string); 
  28.  
  29. function __toString() { 
  30. return $this->string;