Font.ContextualAlternates property (Word)
Specifies whether or not contextual alternates are enabled for the specified font. Read/write Long.
expression. ContextualAlternates
expression An expression that returns a Font object.
Contextual alternates are ligatures that are applied to individual characters based on the letters around them (their context). Contextual alternates can also be applied to entire words in certain contexts, for example, words frequently used in titles (such as "of" and "the"). When contextual alternates are enabled for a font, they are used instead of the standard ligatures in those contexts defined by the font designer.
Setting this property has the same effect as selecting the check box next to Use Contextual Alternates (in the OpenType Features group, Advanced tab, on the Font dialog in Word).
The following code example enables contextual alternates for the font in the active document.
ActiveDocument.Range.Font.ContextualAlternates = True
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.