次の方法で共有


MajorFont Class

Major Font.When the object is serialized out as xml, its qualified name is a:majorFont.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.FontCollectionType
DocumentFormat.OpenXml.Drawing.MajorFont

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

Syntax

'宣言
Public Class MajorFont _
    Inherits FontCollectionType
'使用
Dim instance As MajorFont
public class MajorFont : FontCollectionType

Remarks

The following table lists the possible child types:

  • LatinFont <a:latin>

  • EastAsianFont <a:ea>

  • ComplexScriptFont <a:cs>

  • SupplementalFont <a:font>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 初版]

20.1.4.1.24 majorFont (Major Font)

This element defines the set of major fonts which are to be used under different languages or locals.

[Example: Consider the following example of the major fonts being defined within DrawingML:

<majorFont>
<latin typeface="Calibri"/>
<ea typeface="Arial"/>
<cs typeface="Arial"/>
<font script="Jpan" typeface="MS Pゴシック"/>
<font script="Hang" typeface="HY???"/>
  <font script="Hans" typeface="隶?"/>
<font script="Hant" typeface="微軟正黑體"/>
<font script="Arab" typeface="Traditional Arabic"/>
<font script="Hebr" typeface="Arial"/>
<font script="Thai" typeface="Cordia New"/>
<font script="Ethi" typeface="Nyala"/>
  <font script="Beng" typeface="Vrinda"/>
<font script="Gujr" typeface="Shruti"/>
<font script="Khmr" typeface="DaunPenh"/>
<font script="Knda" typeface="Tunga"/>
</majorFont>

In this example, we see the latin, east asian, and complex script fonts defined along with many fonts for different locals. end example]

Parent Elements

fontScheme (§20.1.4.1.18)

Child Elements

Subclause

cs (Complex Script Font)

§21.1.2.3.1

ea (East Asian Font)

§21.1.2.3.3

extLst (Extension List)

§20.1.2.2.15

font (Font)

§20.1.4.1.16

latin (Latin Font)

§21.1.2.3.7

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

© ISO/IEC29500: 2008. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

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

MajorFont Members

DocumentFormat.OpenXml.Drawing Namespace