PHP Class Pop\Font\Type1

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

Méthodes publiques

Свойство Type Description
$afmPath string Type1 AFM file path
$data string Type1 data
$dict string Type1 dictionary
$encoding string Type1 encoding
$fontData string Type1 font data
$hex string Type1 data in hex format
$length1 integer Type1 length1
$length2 integer Type1 length2
$pfbPath string Type1 PFB file path

Méthodes publiques

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

Méthodes protégées

Méthode Description
convertToHex ( ) : void Method to convert the data string to hex.
parseAfm ( string $afm ) : void Method to parse the Type1 Adobe Font Metrics file
parsePfb ( string $pfb ) : void Method to parse the Type1 PFB file.
strip ( string $str ) : string Method to strip parentheses et al from a string.

Method Details

__construct() public méthode

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

convertToHex() protected méthode

Method to convert the data string to hex.
protected convertToHex ( ) : void
Résultat void

parseAfm() protected méthode

Method to parse the Type1 Adobe Font Metrics file
protected parseAfm ( string $afm ) : void
$afm string
Résultat void

parsePfb() protected méthode

Method to parse the Type1 PFB file.
protected parsePfb ( string $pfb ) : void
$pfb string
Résultat void

strip() protected méthode

Method to strip parentheses et al from a string.
protected strip ( string $str ) : string
$str string
Résultat string

Property Details

$afmPath public_oe property

Type1 AFM file path
public string $afmPath
Résultat string

$data public_oe property

Type1 data
public string $data
Résultat string

$dict public_oe property

Type1 dictionary
public string $dict
Résultat string

$encoding public_oe property

Type1 encoding
public string $encoding
Résultat string

$fontData public_oe property

Type1 font data
public string $fontData
Résultat string

$hex public_oe property

Type1 data in hex format
public string $hex
Résultat string

$length1 public_oe property

Type1 length1
public int $length1
Résultat integer

$length2 public_oe property

Type1 length2
public int $length2
Résultat integer

$pfbPath public_oe property

Type1 PFB file path
public string $pfbPath
Résultat string