Application.SubstituteFont Method (Word)

Sets font-mapping options.

expression .SubstituteFont(UnavailableFont, SubstituteFont)

expression Required. A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

UnavailableFont

Required

String

The name of a font not available on your computer that you want to map to a different font for display and printing.

SubstituteFont

Required

String

The name of a font available on your computer that you want to substitute for the unavailable font.

You can find font-mapping options in the Font Substitution dialog box.

This example substitutes Courier for CustomFont1.

Application.SubstituteFont UnavailableFont:= "CustomFont1", _ 
 SubstituteFont:= "Courier"
Show:
© 2014 Microsoft