Font_Table_hhea

`hhea` font table.

Defined (1)

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

/lib/dompdf/lib/php-font-lib/classes/Font_Table_hhea.php  
  1. class Font_Table_hhea extends Font_Table { 
  2. protected $def = array( 
  3. "version" => self::Fixed,  
  4. "ascent" => self::FWord,  
  5. "descent" => self::FWord,  
  6. "lineGap" => self::FWord,  
  7. "advanceWidthMax" => self::uFWord,  
  8. "minLeftSideBearing" => self::FWord,  
  9. "minRightSideBearing" => self::FWord,  
  10. "xMaxExtent" => self::FWord,  
  11. "caretSlopeRise" => self::int16,  
  12. "caretSlopeRun" => self::int16,  
  13. "caretOffset" => self::FWord,  
  14. self::int16,  
  15. self::int16,  
  16. self::int16,  
  17. self::int16,  
  18. "metricDataFormat" => self::int16,  
  19. "numOfLongHorMetrics" => self::uint16,  
  20. ); 
  21.  
  22. function _encode() { 
  23. $font = $this->getFont(); 
  24. $this->data["numOfLongHorMetrics"] = count($font->getSubset()); 
  25.  
  26. return parent::_encode();