PHP Class Pop\Font\Type1

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

Public Properties

Property 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

Public Methods

Method Description
__construct ( string $font ) : Type1 Constructor

Protected Methods

Method 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 method

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

convertToHex() protected method

Method to convert the data string to hex.
protected convertToHex ( ) : void
return void

parseAfm() protected method

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

parsePfb() protected method

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

strip() protected method

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

Property Details

$afmPath public property

Type1 AFM file path
public string $afmPath
return string

$data public property

Type1 data
public string $data
return string

$dict public property

Type1 dictionary
public string $dict
return string

$encoding public property

Type1 encoding
public string $encoding
return string

$fontData public property

Type1 font data
public string $fontData
return string

$hex public property

Type1 data in hex format
public string $hex
return string

$length1 public property

Type1 length1
public int $length1
return integer

$length2 public property

Type1 length2
public int $length2
return integer

$pfbPath public property

Type1 PFB file path
public string $pfbPath
return string