Font_Table_maxp

`maxp` font table.

Defined (1)

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

/lib/dompdf/lib/php-font-lib/classes/Font_Table_maxp.php  
  1. class Font_Table_maxp extends Font_Table { 
  2. protected $def = array( 
  3. "version" => self::Fixed,  
  4. "numGlyphs" => self::uint16,  
  5. "maxPoints" => self::uint16,  
  6. "maxContours" => self::uint16,  
  7. "maxComponentPoints" => self::uint16,  
  8. "maxComponentContours" => self::uint16,  
  9. "maxZones" => self::uint16,  
  10. "maxTwilightPoints" => self::uint16,  
  11. "maxStorage" => self::uint16,  
  12. "maxFunctionDefs" => self::uint16,  
  13. "maxInstructionDefs" => self::uint16,  
  14. "maxStackElements" => self::uint16,  
  15. "maxSizeOfInstructions" => self::uint16,  
  16. "maxComponentElements" => self::uint16,  
  17. "maxComponentDepth" => self::uint16,  
  18. ); 
  19.  
  20. function _encode() { 
  21. $font = $this->getFont(); 
  22. $this->data["numGlyphs"] = count($font->getSubset()); 
  23.  
  24. return parent::_encode();