Font List - Showing Native Printer Fonts
I was wondering if you had a way to get the fonts that are available for the
printer, just like you have in your report designer.
For example: If I want a list of printers available, I do this:
(cbPrinterName: TComboBox)
cbPrinterNames.Items := fMain.Report.PrinterSetup.PrinterNames;
So what I am trying to do is something like this for the fonts:
cbFontName.Items := fMain.Report.PrinterSetup.Fonts;
I have tried this:
cbFontNames.Items.Assign(Screen.Fonts);
but the problem is that it only shows the Windows Fonts, and I need Dot
Matrix Built in fonts.
Anyone have any ideas?
printer, just like you have in your report designer.
For example: If I want a list of printers available, I do this:
(cbPrinterName: TComboBox)
cbPrinterNames.Items := fMain.Report.PrinterSetup.PrinterNames;
So what I am trying to do is something like this for the fonts:
cbFontName.Items := fMain.Report.PrinterSetup.Fonts;
I have tried this:
cbFontNames.Items.Assign(Screen.Fonts);
but the problem is that it only shows the Windows Fonts, and I need Dot
Matrix Built in fonts.
Anyone have any ideas?
This discussion has been closed.
Comments
with printer fonts (when the print driver supplies them.)
--
Cheers,
Tom Ollar
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com
probably making it more complicated that it should be. Could you please
just give an example of how to fill the combobox?
Thanks.
and type "Printer.Fonts". Just thought I would let you know.