WPCubed Product Support

Current font/canvas

Is there an easy way, similar to CurrAttr or TextCursor, to access the TFont for the current paragraph or CP/position?

or perhaps there could be an event that is fired when the currnt font is about to change?

Alan

#1 ♥ 0
2.4k Views 2 users read 1 min
support

Hi,

You can read all properties which are defined in the TFont structure using CurrAttr.

WPRichText.HeaderFooter.DefaultFont is a TWPFont object. It supports Assign( a TFont ) and AsignTo( a TFont )

The event OnCharacterAttrChange is triggered when the attribute changes.

Julian

#2 ♥ 0
This category is archived. No new posts are possible.