PHP Класс Pop\Pdf\Parser\Font

Автор: Nick Sagona, III ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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
Результат Font

calcByteLength() защищенный Метод

Method to calculate byte length.
protected calcByteLength ( string $str ) : integer
$str string
Результат integer

createFontObjects() защищенный Метод

Method to create the font objects.
protected createFontObjects ( ) : void
Результат void

getFontName() публичный Метод

Method to get the font name.
public getFontName ( ) : string
Результат string

getFontRef() публичный Метод

Method to get the font reference.
public getFontRef ( ) : string
Результат string

getGlyphWidths() защищенный Метод

Method to to get the glyph widths
protected getGlyphWidths ( Cmap $cmap ) : array
$cmap Pop\Font\TrueType\Table\Cmap
Результат array

getObjects() публичный Метод

Method to get the font objects.
public getObjects ( ) : array
Результат array

isEmbeddable() публичный Метод

Method to get if the font is embeddable.
public isEmbeddable ( ) : boolean
Результат boolean

Описание свойств

$compress защищенное свойство

Font compress flag
protected bool $compress
Результат boolean

$font защищенное свойство

Font object
protected mixed $font
Результат mixed

$fontDescIndex защищенное свойство

Font descriptor index
protected int $fontDescIndex
Результат integer

$fontFileIndex защищенное свойство

Font file index
protected int $fontFileIndex
Результат integer

$fontIndex защищенное свойство

Font reference index
protected int $fontIndex
Результат integer

$objectIndex защищенное свойство

Font object index
protected int $objectIndex
Результат integer

$objects защищенное свойство

Font objects
protected array $objects
Результат array