PHP Class Pop\Font\TrueType

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

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode Description
__construct ( string $font ) : TrueType Constructor

Méthodes protégées

Méthode 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 méthode

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

parseCommonTables() protected méthode

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

parseName() protected méthode

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

parseRequiredTables() protected méthode

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

parseTtfTable() protected méthode

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

Property Details

$header public_oe property

TrueType font header
public mixed $header
Résultat mixed

$tableInfo public_oe property

TrueType font table info
public array $tableInfo
Résultat array

$tables public_oe property

TrueType font tables
public array $tables
Résultat array

$ttfHeader public_oe property

TrueType font file header
public ArrayObject $ttfHeader
Résultat ArrayObject

$ttfTable public_oe property

TrueType font file table
public ArrayObject $ttfTable
Résultat ArrayObject