PHP Class Pop\Font\TrueType

Author: Nick Sagona, III ([email protected])
Inheritance: extends AbstractFont
Mostra file Open project: nicksagona/PopPHP Class Usage Examples

Public Properties

Property Type Description
$header mixed TrueType font header
$tableInfo array TrueType font table info
$tables array TrueType font tables
$ttfHeader ArrayObject TrueType font file header
$ttfTable ArrayObject TrueType font file table

Public Methods

Method Description
__construct ( string $font ) : TrueType Constructor

Protected Methods

Method Description
parseCommonTables ( ) : void Method to parse the common tables of the TrueType font file.
parseName ( ) : void Method to parse the TTF info of the TrueType font file from the name table.
parseRequiredTables ( ) : void Method to parse the required tables of the TrueType font file.
parseTtfTable ( ) : void Method to parse the TTF header and table of the TrueType font file.

Method Details

__construct() public method

Instantiate a TrueType font file object based on a pre-existing font file on disk.
public __construct ( string $font ) : TrueType
$font string
return TrueType

parseCommonTables() protected method

Method to parse the common tables of the TrueType font file.
protected parseCommonTables ( ) : void
return void

parseName() protected method

Method to parse the TTF info of the TrueType font file from the name table.
protected parseName ( ) : void
return void

parseRequiredTables() protected method

Method to parse the required tables of the TrueType font file.
protected parseRequiredTables ( ) : void
return void

parseTtfTable() protected method

Method to parse the TTF header and table of the TrueType font file.
protected parseTtfTable ( ) : void
return void

Property Details

$header public_oe property

TrueType font header
public mixed $header
return mixed

$tableInfo public_oe property

TrueType font table info
public array $tableInfo
return array

$tables public_oe property

TrueType font tables
public array $tables
return array

$ttfHeader public_oe property

TrueType font file header
public ArrayObject $ttfHeader
return ArrayObject

$ttfTable public_oe property

TrueType font file table
public ArrayObject $ttfTable
return ArrayObject