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 редакция 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.