Fonts class

Office 2013 and later

Font Table Root Element. The root element of FontTablePart. When the object is serialized out as xml, its qualified name is w:fonts.

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class Fonts : OpenXmlPartRootElement

[ISO/IEC 29500-1 1st Edition]

fonts (Font Table Root Element)

This element specifies the root element for a font table part within a WordprocessingML document, and specifies information about the fonts used in this document, each contained within a child font element.

[Example: Consider the following information stored in a font table part:

  <w:font w:name="Times New Roman">
    …  </w:font>
  <w:font w:name="Arial">
    …  </w:font>

The fonts element contains information about all fonts used in the document - in this example, the Times New Roman and Arial fonts. end example]

Parent Elements

Root element of WordprocessingML Font Table part

Child Elements


font (Properties for a Single Font)


[Note: The W3C XML Schema definition of this element’s content model (CT_FontsList) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.