How can I find printer's font ?
I have a problem with displaying printer's font. I am using Epson TM-U300
printer to print receipt. I try to use its font (control font) to control
the printing. I can't. I can't even use VB.Net to display all printer's font
in my computer whereas Microsoft Word or VB6 can.
Re: How can I find printer's font ?
> I have a problem with displaying printer's font. I am using Epson
> TM-U300 printer to print receipt. I try to use its font (control font)
> to control the printing. I can't. I can't even use VB.NET to display
> all printer's font in my computer whereas Microsoft Word or VB6 can.
Saint: VB.NET (and GDI+, which .NET uses under the hood) only knows about
TrueType and OpenType fonts. In order to use fonts built into your printer,
you'll have to use Windows API functions (e.g., OpenPrinter, WritePrinter,
etc.) to send control codes to the printer.
The following code will list all the fonts installed on your system:
Dim f As FontFamily
Dim fc As New System.Drawing.Text.InstalledFontCollection()
For Each f In fc.Families
Debug.WriteLine(f.Name)
Next
--
Phil Weber