TFontDialog.PreviewText property
A text snippet displayed as a preview for the selected font in the dialog.
Declaration
property 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.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
