setDefaultFont

setDefaultFont

TRIAL / ADVANCED / PREMIUM

Sets the default font for the whole Word document.

Description
public setDefaultFont ( string $font )

This method sets the font that will be used by default.

This value may be overridden by methods that have the specific font option available.

Parameters

font

The name of the font: Arial, Futura, Calibri...

The font is not embedded within the Word document so make sure to use fonts that will be available to your target audience or the font is embedded in the document.

Code samples

Example #1

The resulting Word document looks like: