FontCharSet class

Office 2013 and later

Defines the FontCharSet Class. When the object is serialized out as xml, its qualified name is w:charset.

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

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

charset (Character Set Supported By Font)

This element specifies the character set which is supported by the parent font. This information can be used as defined in font substitution logic to locate an appropriate substitute font when this font is not available. This information is determined by querying the font when present and shall not be modified when the font is not available.

If this element is not present, then the character set for this font shall be assumed to be the /IEC 8859-1 character set.

[Example: Consider the following information stored for a single font:

<w:font w:name="SimSun">
  <w:charset w:characterSet="GBK" />
  …</w:font>

The charset element specifies via its characterSet attribute value of GBK that this font uses the GB-2312 character set. end example]

Parent Elements

font (§17.8.3.10)

Attributes

Description

characterSet (IANA Name of Character Set)

Name of the character set associated with the font. The values allowed by this attribute are defined by the names and aliases listed in the IANA registration table. If this value is specified, the value of the val attribute is ignored.

The possible values for this attribute are defined by the ST_String simple type (§22.9.2.13).

[Note: The W3C XML Schema definition of this element’s content model (CT_Charset) 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.
Show: