Class Font (PowerPoint VBA)

The class Font represents character formatting for text or a bullet. The Font object is a member of the Fonts collection. The Fonts collection contains all the fonts used in a presentation.

The classes BulletFormat, TextRange and TextStyleLevel. give access to class Font

To use a Font class variable it first needs to be instantiated, for example

Dim fnt as Font
Set fnt = ActivePresentation.Fonts(Index:=1)

The following procedures can be used to set variables of type Font: BulletFormat.Font, Fonts.Item, TextRange.Font and TextStyleLevel.Font.

Properties

AutoRotateNumbers returns or sets lateral compression.

BaselineOffset returns or sets the baseline offset for the specified superscript or subscript characters.

Bold determines whether the character format is bold.

Color returns or sets the color of the current Font object.

Embeddable determines whether the specified font can be embedded in the presentation.

Embedded determines whether the specified font is embedded in the presentation.

Emboss determines whether the character format is embossed.

Italic true if the font or range is formatted as italic.

Name returns or sets the name of the specified object.

NameAscii returns or sets the font used for ASCII characters (characters with character set numbers within the range of 0 to 127).

NameComplexScript returns or sets the complex script font name. Used for mixed language text.

NameFarEast returns or sets the Asian font name.

NameOther returns or sets the font used for characters whose character set numbers are greater than 127.

Shadow determines whether the specified text has a shadow.

Size returns or sets the character size, in points.

Subscript determines whether the specified text is subscript.

Superscript determines whether the specified text is superscript.

Underline determines whether the specified text (for the Font object) or the font style (for the FontInfo object) is underlined.

ColorFormat - Represents the color of a one-color object, the foreground or background color of an object with a gradient or patterned fill, or the pointer color. You can set colors to an explicit red-green-blue value (by using the RGB property) or to a color in the color scheme (by using the SchemeColor property).