[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)

TFontDialog.PreviewText

A text snippet displayed as a preview for the selected font in the dialog.

Declaration

Source position: dialogs.pp line 441

published property TFontDialog.PreviewText : string
  read FPreviewText
  write FPreviewText;

Description

PreviewText is a String property with a short snippet of text to display using the currently selected font in the dialog. It acts as a WYSIWYG preview mechanism.

Please note that use of PreviewText is dependent on platform / widgetset support. For instance, Windows does render PreviewText. It uses its own "Sample", and renders the font name in the selection list using the typeface. QT and QT5 have the same behavior as Windows. It is implemented for the GTK, GTK2 and MUI widgetsets.


Version 4.0 Generated 2025-05-03 Home