Fonts Collection Object

Microsoft PowerPoint Visual Basic

Fonts Collection Object

         
Presentation Fonts (Font)

A collection of all the Font objects in the specified presentation. Each Font object represents a font that's used in the presentation.

Note   The Fonts collection is used by the Geni Wizard to determine whether any of the fonts in the specified presentation won't be supported when Genigraphics images the slides. If you just want to set character formatting for a particular bullet or text range, use the Font property to return the Font object for the bullet or text range.

Using the Fonts Object

Use the Fonts property to return the Fonts collection. The following example displays the number of fonts used in the active presentation.

MsgBox ActivePresentation.Fonts.Count

Use Fonts(index), where index is the font's name or index number, to return a single Font object. The following example checks to see whether font one in the active presentation is embedded in the presentation.

If ActivePresentation.Fonts(1).Embedded = True Then
    MsgBox "Font 1 is embedded"