PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.0
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.0
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
easy-invoice / vendor / dompdf / php-font-lib / src / FontLib / Header.php

Header.php in Easy Invoice – Invoice Generator, PDF Quotes & Payments 2.4.0, at vendor/dompdf/php-font-lib/src/FontLib/Header.php

36 lines 670 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package php-font-lib
4 * @link https://github.com/dompdf/php-font-lib
5 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
6 */
7 namespace FontLib;
8
9 use FontLib\TrueType\File;
10
11 /**
12 * Font header container.
13 *
14 * @package php-font-lib
15 */
16 abstract class Header extends BinaryStream {
17 /**
18 * @var File
19 */
20 protected $font;
21 protected $def = array();
22
23 public $data;
24
25 public function __construct(File $font) {
26 $this->font = $font;
27 }
28
29 public function encode() {
30 return $this->font->pack($this->def, $this->data);
31 }
32
33 public function parse() {
34 $this->data = $this->font->unpack($this->def);
35 }
36 }