class FontExtension extends Twig_Extension (View source)

Extension that allow render fonts.

Methods

__construct(Container $container)

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

__construct(Container $container)

DocumentExtension constructor.

Parameters

Container $container

string getName()

Return Value

string

array getFilters()

Return Value

array

string getEotFilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime

string getTtfFilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime

string getSvgFilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime

string getWoffFilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime

string getWoff2FilePath(Font $font = null)

Parameters

Font $font

Return Value

string

Exceptions

Twig_Error_Runtime