TXTextControl.TextControl.AdaptFont Event

Occurs for each font that must be adapted, because it is not supported. The event can occur, if another printer is set with the TextControl.FormattingPrinter property, if a document is loaded that contains a font which is not supported, or if fonts have been restricted with the FontSettings.EmbeddableFontsOnly or the FontSettings.TrueTypeFontsOnly property. The event occurs only, if the FontSettings.AdaptFontEvent property has been set to true. The event handler receives an argument of type AdaptFontEventArgs containing data related to this event.

Introduced: 15.0.

Syntax

[C#]
public event AdaptFontEventHandler AdaptFont;
[Visual Basic]
Public Event AdaptFont As AdaptFontEventHandler

See Also