Application.SubstituteFont Method
Word Developer Reference |
Sets font-mapping options.
Syntax
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. |
Remarks
You can find font-mapping options in the Font Substitution dialog box.
Example
This example substitutes Courier for CustomFont1.
Visual Basic for Applications |
---|
|
See Also