Constants

ARIAL

ARIAL

Standard font constants

ARIAL_ITALIC

ARIAL_ITALIC

ARIAL_BOLD

ARIAL_BOLD

ARIAL_BOLD_ITALIC

ARIAL_BOLD_ITALIC

COURIER

COURIER

COURIER_OBLIQUE

COURIER_OBLIQUE

COURIER_BOLD

COURIER_BOLD

COURIER_BOLD_OBLIQUE

COURIER_BOLD_OBLIQUE

COURIER_NEW

COURIER_NEW

COURIER_NEW_ITALIC

COURIER_NEW_ITALIC

COURIER_NEW_BOLD

COURIER_NEW_BOLD

COURIER_NEW_BOLD_ITALIC

COURIER_NEW_BOLD_ITALIC

HELVETICA

HELVETICA

HELVETICA_OBLIQUE

HELVETICA_OBLIQUE

HELVETICA_BOLD

HELVETICA_BOLD

HELVETICA_BOLD_OBLIQUE

HELVETICA_BOLD_OBLIQUE

SYMBOL

SYMBOL

TIMES_ROMAN

TIMES_ROMAN

TIMES_BOLD

TIMES_BOLD

TIMES_ITALIC

TIMES_ITALIC

TIMES_BOLD_ITALIC

TIMES_BOLD_ITALIC

TIMES_NEW_ROMAN

TIMES_NEW_ROMAN

TIMES_NEW_ROMAN_ITALIC

TIMES_NEW_ROMAN_ITALIC

TIMES_NEW_ROMAN_BOLD

TIMES_NEW_ROMAN_BOLD

TIMES_NEW_ROMAN_BOLDITALIC

TIMES_NEW_ROMAN_BOLDITALIC

ZAPF_DINGBATS

ZAPF_DINGBATS

Properties

$standardFonts

$standardFonts : array

Standard PDF fonts

Type

array

$font

$font : string

Font

Type

string

$name

$name : string

Font name

Type

string

$isStandard

$isStandard : boolean

Flag for a standard font

Type

boolean

$isEmbedded

$isEmbedded : boolean

Flag for an embedded font file

Type

boolean

Methods

__construct()

__construct(string  $font) 

Constructor

Instantiate a PDF font.

Parameters

string $font

setFont()

setFont(string  $font) : \Pop\Pdf\Document\Font

Set font

Parameters

string $font

Throws

\Pop\Pdf\Document\Exception

Returns

\Pop\Pdf\Document\Font

getFont()

getFont() : string

Get font

Returns

string

getName()

getName() : string

Get font name

Returns

string

isStandard()

isStandard() : boolean

Determine if the font is a standard font

Returns

boolean

isEmbedded()

isEmbedded() : boolean

Determine if the font is an embedded font

Returns

boolean

getStandardFonts()

getStandardFonts() : array

Get available standard fonts

Returns

array