Sign in Join
FPDoc Onlineexperiment

TPrinter.DoEnumFonts procedure

Member of TPrinterprotectedIn unit Printers

Performs actions needed to get a list of fonts supported for a print device.

Declaration

pascal
procedure DoEnumFonts(Lst: TStrings); virtual

Arguments

Lst

TStrings instance where the list of font names is stored.

Description

DoEnumFonts is a virtual method used to perform actions needed to populate the specified list with font names supported for the selected print device. DoEnumFonts is called from the GetFonts method when the Fonts property is empty.

In TPrinter, DoEnumFonts has an empty implementation. It must be overridden in a descendent class to perform actions needed to get the list of font names using the facilities available for the operating system / widgetset / printer-related technology.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.