Share via


EmbeddedFont Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.EmbeddedFont

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Font))> _
<ChildElementInfoAttribute(GetType(BoldItalicFont))> _
<ChildElementInfoAttribute(GetType(RegularFont))> _
<ChildElementInfoAttribute(GetType(BoldFont))> _
<ChildElementInfoAttribute(GetType(ItalicFont))> _
Public Class EmbeddedFont _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As EmbeddedFont
[ChildElementInfoAttribute(typeof(Font))]
[ChildElementInfoAttribute(typeof(BoldItalicFont))]
[ChildElementInfoAttribute(typeof(RegularFont))]
[ChildElementInfoAttribute(typeof(BoldFont))]
[ChildElementInfoAttribute(typeof(ItalicFont))]
public class EmbeddedFont : OpenXmlCompositeElement

Remarks

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]

19.2.1.9 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:embeddedFont>
  <p:font typeface="MyFont" pitchFamily="34" charset="0"/>
  <p:regular r:id="rId2"/>
</p:embeddedFont>

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 (§19.2.1.10)

Child Elements

Subclause

bold (Bold Embedded Font)

§19.2.1.1

boldItalic (Bold Italic Embedded Font)

§19.2.1.2

font (Embedded Font Name)

§19.2.1.13

italic (Italic Embedded Font)

§19.2.1.16

regular (Regular Embedded Font)

§19.2.1.29

[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

Reference

EmbeddedFont Members

DocumentFormat.OpenXml.Presentation Namespace