3 * @package php-font-lib
4 * @link https://github.com/PhenX/php-font-lib
5 * @author Fabien Ménager <fabien.menager@gmail.com>
6 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
9 namespace FontLib\Table\Type;
10 use FontLib\Table\Table;
15 * @package php-font-lib
17 class maxp extends Table {
18 protected $def = array(
19 "version" => self::Fixed,
20 "numGlyphs" => self::uint16,
21 "maxPoints" => self::uint16,
22 "maxContours" => self::uint16,
23 "maxComponentPoints" => self::uint16,
24 "maxComponentContours" => self::uint16,
25 "maxZones" => self::uint16,
26 "maxTwilightPoints" => self::uint16,
27 "maxStorage" => self::uint16,
28 "maxFunctionDefs" => self::uint16,
29 "maxInstructionDefs" => self::uint16,
30 "maxStackElements" => self::uint16,
31 "maxSizeOfInstructions" => self::uint16,
32 "maxComponentElements" => self::uint16,
33 "maxComponentDepth" => self::uint16,
37 $font = $this->getFont();
38 $this->data["numGlyphs"] = count($font->getSubset());
40 return parent::_encode();