MacWordSmallCaps class
Emulate Word 5.x for the Macintosh Small Caps Formatting. When the object is serialized out as xml, its qualified name is w:mwSmallCaps.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.OnOffType
DocumentFormat.OpenXml.Wordprocessing.MacWordSmallCaps
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
mwSmallCaps (Use Specific Small Caps Algorithm)
This element specifies that applications should use a specific algorithm to determine the font size of small caps (the formatting resulting from the use of the smallCaps element (Part 1, §17.3.2.33). This emulation typically results in small caps which are smaller than typical small caps at most font sizes.
Typically, applications can utilize any algorithm that results in small caps formatting. This element, when present with a val attribute value of true (or equivalent), specifies that applications should determine the font size for small caps using the following algorithm:
If , then the font size for small caps is 7 points.
Otherwise, sequentially iterate through until , at which point the font size for small caps is points.
where
is an array defined as follows: where .
is an integer calculated as follows: The font size of the run to which small caps formatting is applied (in points).
[Example: Consider a WordprocessingML document with small caps on its text contents.
If this compatibility setting is turned on:
<w:compat> <w:mwSmallCaps /> </w:compat>
And the font size for a single run is 16 points, and performing the algorithm above would result in 14 points as the calculated font size for small caps. end example]
Parent Elements |
|---|
compat (Part 1, §17.15.1.21) |
This element’s content model is defined by the common boolean property definition in Part 1, §17.17.4.
© ISO/IEC29500: 2008.