setDefaultFont

setDefaultFont

BASIC / 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 embeded within the Word document so make sure to use fonts that will be available to your target audience or the font is embeded in the base template.

Return values

Void.

Code samples

Example #1

The resulting Word document looks like: