Class Font (Word VBA)
Contains font attributes (such as font name, font size and color) for an object.
The classes ConditionalStyle, Find, ListLevel, Range, Replacement, Selection and Style. give access to class Font
Dim fnt as Font
Set fnt = Selection.Font
Methods
Grow - Increases the font size to the next available size.
Reset - Removes manual character formatting (formatting not applied using a style). For example, if you manually format a word as bold and the underlying style is plain text (not bold), the Reset method removes the bold format.
SetAsTemplateDefault - Sets the specified font formatting as the default for the active document and all new documents based on the active template.
Shrink - Decreases the font size to the next available size.
Properties
AllCaps true if the font is formatted as all capital letters.
Bold true if the font is formatted as bold.
BoldBi true if the font is formatted as bold.
Borders returns a Borders collection that represents all the borders for the specified font.
ColorIndex returns or sets a WdColorIndex constant that represents the color for the specified font.
ColorIndexBi returns or sets the color for the specified Font object in a right-to-left language document.
ContextualAlternates specifies whether or not contextual alternates are enabled for the specified font.
DiacriticColor returns or sets the 24-bit color to be used for diacritics for the specified Font object.
DisableCharacterSpaceGrid true if Microsoft Word ignores the number of characters per line for the corresponding Font object.
DoubleStrikeThrough true if the specified font is formatted as double strikethrough text.
Duplicate returns a copy of a Font object that represents the character formatting of the specified font.
Emboss true if the specified font is formatted as embossed.
EmphasisMark returns or sets a WdEmphasisMark constant that represents the emphasis mark for a character or designated character string.
Engrave true if the font is formatted as engraved.
Fill returns a FillFormat object that contains fill formatting properties for the font used by the specified range of text.
Glow returns a GlowFormat object that represents the glow formatting for the font used by the specified range of text.
Hidden true if the font is formatted as hidden text.
Italic true if the font or range is formatted as italic.
ItalicBi true if the font or range is formatted as italic.
Kerning returns or sets the minimum font size for which Microsoft Word will adjust kerning automatically.
Ligatures returns or sets the ligatures setting for the specified Font object.
Line returns a LineFormat object that specifies the formatting for a line.
Name returns or sets the name of the specified object.
NameAscii returns or sets the font used for Latin text (characters with character codes from 0 (zero) through 127).
NameBi returns or sets the name of the font in a right-to-left language document.
NameFarEast returns or sets an East Asian font name.
NameOther returns or sets the font used for characters with character codes from 128 through 255.
NumberForm returns or sets the number form setting for an OpenType font.
NumberSpacing returns or sets the number spacing setting for a font.
Outline true if the font is formatted as outline.
Position returns or sets the position of text (in points) relative to the base line.
Reflection returns a ReflectionFormat object that represents the reflection formatting for a shape.
Scaling returns or sets the scaling percentage applied to the font.
Shading returns a Shading object that refers to the shading formatting for the specified font.
Shadow true if the specified font is formatted as shadowed.
Size returns or sets the font size, in points.
SizeBi returns or sets the font size in points.
SmallCaps true if the font is formatted as small capital letters.
Spacing returns or sets the spacing (in points) between characters.
StrikeThrough true if the font is formatted as strikethrough text.
StylisticSet specifies the stylistic set for the specified font.
Subscript true if the font is formatted as subscript.
Superscript true if the font is formatted as superscript.
TextColor returns a ColorFormat object that represents the color for the specified font.
TextShadow returns a ShadowFormat object that specifies the shadow formatting for the specified font.
ThreeD returns a ThreeDFormat object that contains 3D effect formatting properties for the specified font.
Underline returns or sets the type of underline applied to the font.
UnderlineColor returns or sets the 24-bit color of the underline for the specified Font object.
Related Classes
Borders - A collection of Border objects that represent the borders of an object.
ColorFormat - Represents the color of a one-color object or the foreground or background color of an object with a gradient or patterned fill. You can set colors to an explicit red-green-blue value by using the RGB property.
FillFormat - Represents fill formatting for a shape. A shape can have a solid, gradient, texture, pattern, picture, or semi-transparent fill.
GlowFormat - Represents the glow formatting for a shape or range of shapes.
LineFormat - Represents line and arrowhead formatting. For a line, the LineFormat object contains formatting information for the line itself; for a shape with a border, this object contains formatting information for the shape's border.
ReflectionFormat - Represents the reflection formatting for a shape or range of shapes.
Shading - Contains shading attributes for an object.
ShadowFormat - Represents shadow formatting for a shape.
ThreeDFormat - Represents a shape's three-dimensional formatting.