Pop\Font\TrueType::__construct PHP Метод

__construct() публичный Метод

Instantiate a TrueType font file object based on a pre-existing font file on disk.
public __construct ( string $font ) : TrueType
$font string
Результат TrueType
    public function __construct($font)
    {
        parent::__construct($font);
        $this->parseTtfTable();
        $this->parseName();
        $this->parseCommonTables();
        $this->parseRequiredTables();
    }

Usage Example

Пример #1
0
 /**
  * Constructor
  *
  * Instantiate a OpenType font file object based on a pre-existing font file on disk.
  *
  * @param  string $font
  * @return \Pop\Font\TrueType\OpenType
  */
 public function __construct($font)
 {
     parent::__construct($font);
 }