ITextFont2 interface

In the Text Object Model (TOM), applications access text-range attributes by using a pair of dual interfaces, ITextFont and ITextPara.

The ITextFont2 interface extends ITextFont, providing the programming equivalent of the Microsoft Word format-font dialog.

When to implement

Applications typically do not implement the ITextFont2 interface. Microsoft text solutions, such as rich edit controls, implement ITextFont2 as part of their TOM implementations.

When to use

Applications can retrieve an ITextFont2 pointer for a text range by calling the ITextRange2::GetFont2 method.

Members

The ITextFont2 interface inherits from ITextFont. ITextFont2 also has these types of members:

Methods

The ITextFont2 interface has these methods.

MethodDescription
GetAutoLigatures

Gets whether support for automatic ligatures is active.

GetAutospaceAlpha

Gets the East Asian "autospace alphabetics" state.

GetAutospaceNumeric

Gets the East Asian "autospace numeric" state.

GetAutospaceParens

Gets the East Asian "autospace parentheses" state.

GetCharRep

Gets the character repertoire (writing system).

GetCompressionMode

Gets the East Asian compression mode.

GetCookie

Gets the client cookie.

GetCount

Gets the count of extra properties in this character formatting collection.

GetDoubleStrike

Gets whether characters are displayed with double horizontal lines through the center.

GetDuplicate2

Gets a duplicate of this character format object.

GetEffects

Gets the character format effects.

GetEffects2

Gets the additional character format effects.

GetLinkType

Gets the link type.

GetMathZone

Gets whether a math zone is active.

GetModWidthPairs

Gets whether "decrease widths on pairs" is active.

GetModWidthSpace

Gets whether "increase width of whitespace" is active.

GetOldNumbers

Gets whether old-style numbers are active.

GetOverlapping

Gets whether overlapping text is active.

GetPositionSubSuper

Gets the subscript or superscript position relative to the baseline.

GetProperty

Gets the value of the specified property.

GetPropertyInfo

Gets the property type and value of the specified extra propety.

GetScaling

Gets the font horizontal scaling percentage.

GetSpaceExtension

Gets the East Asian space extension value.

GetUnderlinePositionMode

Gets the underline position mode.

IsEqual2

Determines whether this text font object has the same properties as the specified text font object.

SetAutoLigatures

Sets whether support for automatic ligatures is active.

SetAutospaceAlpha

Sets the East Asian "autospace alpha" state.

SetAutospaceNumeric

Sets the East Asian "autospace numeric" state.

SetAutospaceParens

Sets the East Asian "autospace parentheses" state.

SetCharRep

Sets the character repertoire (writing system).

SetCompressionMode

Sets the East Asian compression mode.

SetCookie

Sets the client cookie.

SetDoubleStrike

Sets whether characters are displayed with double horizontal lines through the center.

SetDuplicate2

Sets the properties of this object by copying the properties of another text font object.

SetEffects

Sets the character format effects.

SetEffects2

Sets the additional character format effects.

SetMathZone

Sets whether a math zone is active.

SetModWidthPairs

Sets whether "decrease widths on pairs" is active.

SetModWidthSpace

Sets whether "increase width of whitespace" is active.

SetOldNumbers

Sets whether old-style numbers are active.

SetOverlapping

Sets whether overlapping text is active.

SetPositionSubSuper

Sets the position of a subscript or superscript relative to the baseline, as a percentage of the font height.

SetProperty

Sets the value of the specified property.

SetScaling

Sets the font horizontal scaling percentage.

SetSpaceExtension

Sets the East Asian space extension value.

SetUnderlinePositionMode

Sets the underline position mode.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft