embedFont

embedFont

ADVANCED / PREMIUM BASIC

Embeds a TTF font in a Word document.

Description
public void embedFont(String fontSource, String fontName) throws Exception
public void embedFont(String fontSource, String fontName, OptionsEmbedFont options) throws Exception
Parameters

fontSource

TTF font path.

fontName

Font name.

options

Option Type Description
charset String 00 as default.
styleEmbedding String Regular (default), Bold, Italic, BoldItalic.
Code samples

Example #1

The resulting Word document looks like: