XmlApi - pdx:setDefaultFont

pdx:setDefaultFont

Sets the default font for the whole Word document.

Note

You are reading the XMLAPI documentation. For the API method please go to setDefaultFont.

Description

Element definition

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

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

Attributes and sub-elements

value

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 base template.

Code samples

Example #1

config.xml

content.xml

settings.xml

PHP code

The resulting Word document looks like: