PHP Class Pop\Font\AbstractFont

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

Méthodes publiques

Свойство Type Description
$ascent integer Font ascent value
$bBox ArrayObject Font bounding box info
$capHeight integer Font cap height value
$descent integer Font descent value
$embeddable boolean Font embeddable flag
$flags ArrayObject Font flags
$glyphWidths array Font glyph widths
$info mixed Font info
$italicAngle float Font italic angle value
$missingWidth integer Missing glyph width
$numberOfGlyphs integer Font number of glyphs value
$numberOfHMetrics integer Font number of horizontal metrics value
$stemH integer Font StemH value
$stemV integer Font StemV value
$unitsPerEm integer Font units per EM value

Protected Properties

Свойство Type Description
$allowed array Array of allowed file types.

Méthodes publiques

Méthode Description
__construct ( string $font ) : AbstractFont Constructor
calcFlags ( ) : integer Method to calculate the font flags
readFixed ( integer $mantissaBits, integer $fractionBits, string $bytes ) : integer Static method to read and return a fixed-point number
readInt ( integer $size, string $bytes ) : integer Static method to read and return a signed integer
shiftToSigned ( integer | array $values ) : integer | array Method to shift an unpacked signed short from little endian to big endian
toEmSpace ( integer $value ) : integer Method to convert a value to the representative value in EM.

Method Details

__construct() public méthode

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

calcFlags() public méthode

Method to calculate the font flags
public calcFlags ( ) : integer
Résultat integer

readFixed() public méthode

Static method to read and return a fixed-point number
public readFixed ( integer $mantissaBits, integer $fractionBits, string $bytes ) : integer
$mantissaBits integer
$fractionBits integer
$bytes string
Résultat integer

readInt() public méthode

Static method to read and return a signed integer
public readInt ( integer $size, string $bytes ) : integer
$size integer
$bytes string
Résultat integer

shiftToSigned() public méthode

Method to shift an unpacked signed short from little endian to big endian
public shiftToSigned ( integer | array $values ) : integer | array
$values integer | array
Résultat integer | array

toEmSpace() public méthode

Method to convert a value to the representative value in EM.
public toEmSpace ( integer $value ) : integer
$value integer
Résultat integer

Property Details

$allowed protected_oe property

Array of allowed file types.
protected array $allowed
Résultat array

$ascent public_oe property

Font ascent value
public int $ascent
Résultat integer

$bBox public_oe property

Font bounding box info
public ArrayObject $bBox
Résultat ArrayObject

$capHeight public_oe property

Font cap height value
public int $capHeight
Résultat integer

$descent public_oe property

Font descent value
public int $descent
Résultat integer

$embeddable public_oe property

Font embeddable flag
public bool $embeddable
Résultat boolean

$flags public_oe property

Font flags
public ArrayObject $flags
Résultat ArrayObject

$glyphWidths public_oe property

Font glyph widths
public array $glyphWidths
Résultat array

$info public_oe property

Font info
public mixed $info
Résultat mixed

$italicAngle public_oe property

Font italic angle value
public float $italicAngle
Résultat float

$missingWidth public_oe property

Missing glyph width
public int $missingWidth
Résultat integer

$numberOfGlyphs public_oe property

Font number of glyphs value
public int $numberOfGlyphs
Résultat integer

$numberOfHMetrics public_oe property

Font number of horizontal metrics value
public int $numberOfHMetrics
Résultat integer

$stemH public_oe property

Font StemH value
public int $stemH
Résultat integer

$stemV public_oe property

Font StemV value
public int $stemV
Résultat integer

$unitsPerEm public_oe property

Font units per EM value
public int $unitsPerEm
Résultat integer