EmbeddedFont Class

Embedded Font.When the object is serialized out as xml, its qualified name is p:embeddedFont.

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(Font))> _
<ChildElementInfoAttribute(GetType(BoldItalicFont))> _
<ChildElementInfoAttribute(GetType(RegularFont))> _
<ChildElementInfoAttribute(GetType(BoldFont))> _
<ChildElementInfoAttribute(GetType(ItalicFont))> _
Public Class EmbeddedFont _
    Inherits OpenXmlCompositeElement
Dim instance As EmbeddedFont
public class EmbeddedFont : OpenXmlCompositeElement


The following table lists the possible child types:

  • Font <p:font>

  • RegularFont <p:regular>

  • BoldFont <p:bold>

  • ItalicFont <p:italic>

  • BoldItalicFont <p:boldItalic>

[ISO/IEC 29500-1 1st Edition] embeddedFont (Embedded Font)

This element specifies an embedded font. Once specified, this font is available for use within the presentation. Within a font specification there can be regular, bold, italic and boldItalic versions of the font specified. The actual font data for each of these is referenced using a relationships file that contains links to all available fonts. This font data contains font information for each of the characters to be made available in each version of the font.

[Example: Consider the following embedded font.

  <p:font typeface="MyFont" pitchFamily="34" charset="0"/>
  <p:regular r:id="rId2"/>

end example]

[Note: Not all characters for a typeface must be stored. It is up to the generating application to determine which characters are to be stored in the corresponding font data files. end note]

Parent Elements

embeddedFontLst (§

Child Elements


bold (Bold Embedded Font)


boldItalic (Bold Italic Embedded Font)


font (Embedded Font Name)


italic (Italic Embedded Font)


regular (Regular Embedded Font)


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

© ISO/IEC29500: 2008.

Thread Safety

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

See Also


EmbeddedFont Members

DocumentFormat.OpenXml.Presentation Namespace