Font.StylisticSets property (Publisher)

Returns or sets a Variant that represents the state of the StylisticSets property on the characters in a text range. Read/write.

Syntax

expression.StylisticSets

expression A variable that represents a Font object.

Remarks

The StylisticSets property applies from one to twenty increasingly complex sets of typography styles to the selected font.

Possible values for the StylisticSets property and how they correspond to identifiers for stylistic sets in the user interface (UI) are shown in the following table. A value of zero (0) indicates that no stylistic set is applied.

StylisticSets property value Stylistic set identifier in UI
0 0
1 1
2 2
4 3
8 4

The number of stylistic sets available varies depending on the font.

The StylisticSets property has an effect only for OpenType fonts that contain stylistic sets.

Support and feedback

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.