次の方法で共有


TruncateFontHeightsLikeWordPerfect Class

Emulate WordPerfect 6.x Font Height Calculation.When the object is serialized out as xml, its qualified name is w:truncateFontHeightsLikeWP6.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.OnOffType
DocumentFormat.OpenXml.Wordprocessing.TruncateFontHeightsLikeWordPerfect

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

Syntax

'宣言
Public Class TruncateFontHeightsLikeWordPerfect _
    Inherits OnOffType
'使用
Dim instance As TruncateFontHeightsLikeWordPerfect
public class TruncateFontHeightsLikeWordPerfect : OnOffType

Remarks

[ISO/IEC 29500-1 初版]

9.7.3.46 truncateFontHeightsLikeWP6 (Use Truncated Integer Division For Font Calculation)

This element specifies that applications should perform a specific method of calculation when converting font heights, specified in points using the sz (Part 1, §17.3.2.38) and szCs (Part 1, §17.3.2.39) elements, into pixels. This algorithm often results in a smaller than typical visual appearance of text for a given point size.

Typically, applications convert points to pixels using any approximate mathematical conversion mechanism (often, rounded integer division). This element, when present with a val attribute value of true (or equivalent), specifies that applications should use truncated integer division when performing this conversion (any non-integer value is truncated to determine the integer value resulting from the conversions).

[Example: If this compatibility setting is turned on:

<w:compat>
<w:truncateFontHeightsLikeWP6 />
</w:compat>

Then applications shall use truncated integer division when calculating the height of characters.

For example, if the conversion is done as follows:

where:

Converting a 14 point font on a 96 dpi device results in. If this setting is on, the result is truncated and the font is displayed using 18 pixels, even though 19 would be closer to the actual value. 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. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、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

TruncateFontHeightsLikeWordPerfect Members

DocumentFormat.OpenXml.Wordprocessing Namespace