Beta version

class FontExtension extends Twig_Extension

Extension that allow render fonts.

Methods

__construct(Packages $packages)

DocumentExtension constructor.

string
getName()

No description

array
getFilters()

No description

string
getEotFilePath(Font $font = null)

No description

string
getTtfFilePath(Font $font = null)

No description

string
getSvgFilePath(Font $font = null)

No description

string
getWoffFilePath(Font $font = null)

No description

string
getWoff2FilePath(Font $font = null)

No description

Details

at line 49
__construct(Packages $packages)

DocumentExtension constructor.

Parameters

Packages $packages

at line 57
string getName()

Return Value

string

at line 65
array getFilters()

Return Value

array

at line 82
string getEotFilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime

at line 95
string getTtfFilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime

at line 108
string getSvgFilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime

at line 121
string getWoffFilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime

at line 134
string getWoff2FilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime