embedFont

embedFont

ADVANCED / PREMIUM BASIC

Embeds a TTF font in a Word document.

Description
public embedFont (string $fontSource, string $fontName, [array $options])
Parameters

fontSource

TTF font path.

fontName

Font name.

options

The possible keys and values of this array are:

Key Type Description
charset string 00 as default.
styleEmbeding string Regular (default), Bold, Italic, BoldItalic.
Code samples

Example #1

The resulting Word document looks like:

Example #2

The resulting Word document looks like: