PHP Class Pop\Pdf\Parser\Font

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

Protected Properties

Свойство Type Description
$compress boolean Font compress flag
$font mixed Font object
$fontDescIndex integer Font descriptor index
$fontFileIndex integer Font file index
$fontIndex integer Font reference index
$objectIndex integer Font object index
$objects array Font objects

Méthodes publiques

Méthode Description
__construct ( string $fle, integer $fi, integer $oi, boolean $comp = false ) : Font Constructor
getFontName ( ) : string Method to get the font name.
getFontRef ( ) : string Method to get the font reference.
getObjects ( ) : array Method to get the font objects.
isEmbeddable ( ) : boolean Method to get if the font is embeddable.

Méthodes protégées

Méthode Description
calcByteLength ( string $str ) : integer Method to calculate byte length.
createFontObjects ( ) : void Method to create the font objects.
getGlyphWidths ( Cmap $cmap ) : array Method to to get the glyph widths

Method Details

__construct() public méthode

Instantiate a font parser object to be used by Pop_Pdf.
public __construct ( string $fle, integer $fi, integer $oi, boolean $comp = false ) : Font
$fle string
$fi integer
$oi integer
$comp boolean
Résultat Font

calcByteLength() protected méthode

Method to calculate byte length.
protected calcByteLength ( string $str ) : integer
$str string
Résultat integer

createFontObjects() protected méthode

Method to create the font objects.
protected createFontObjects ( ) : void
Résultat void

getFontName() public méthode

Method to get the font name.
public getFontName ( ) : string
Résultat string

getFontRef() public méthode

Method to get the font reference.
public getFontRef ( ) : string
Résultat string

getGlyphWidths() protected méthode

Method to to get the glyph widths
protected getGlyphWidths ( Cmap $cmap ) : array
$cmap Pop\Font\TrueType\Table\Cmap
Résultat array

getObjects() public méthode

Method to get the font objects.
public getObjects ( ) : array
Résultat array

isEmbeddable() public méthode

Method to get if the font is embeddable.
public isEmbeddable ( ) : boolean
Résultat boolean

Property Details

$compress protected_oe property

Font compress flag
protected bool $compress
Résultat boolean

$font protected_oe property

Font object
protected mixed $font
Résultat mixed

$fontDescIndex protected_oe property

Font descriptor index
protected int $fontDescIndex
Résultat integer

$fontFileIndex protected_oe property

Font file index
protected int $fontFileIndex
Résultat integer

$fontIndex protected_oe property

Font reference index
protected int $fontIndex
Résultat integer

$objectIndex protected_oe property

Font object index
protected int $objectIndex
Résultat integer

$objects protected_oe property

Font objects
protected array $objects
Résultat array