Link to home
Start Free TrialLog in
Avatar of aponcealbuerne
aponcealbuerne

asked on

print with a font not installed in the system

Hi everyone:

Is there any way to print with a font that is not installed in the system, is only in the printer driver.
For example:
If i open a wordpad and after set the printer in the page settings, i'm able to choose some fonts that are not installed.

But when i try to print with these fonts in my program the fonts are not found and the Microsoft Sans Serif font is selected by default.

My code looks like this:

System.Drawing.Font printFontNormal;
     printFontNormal = new System.Drawing.Font
         ("FontB11", 9, System.Drawing.FontStyle.Regular);
The "FontB11" is not found.

Thanks in advance


Avatar of athapa
athapa

If the font is missing in the system then you could install it with your setup package or while executing your application. So, may be you should validate if the required font is available when your application starts.

AT
Avatar of aponcealbuerne

ASKER

I don't have the fonts, they are bult in in the printer or in the driver printer...
Are these PostScript printers?

AT

It's a TM-U220 Receipt Printer from epson a printer for POS.
ASKER CERTIFIED SOLUTION
Avatar of athapa
athapa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Check this post too. Basically it says that you have to use Win32 calls to access device specific features (such as bar code font stored in the printer, etc).
http://www.dotnet247.com/247reference/msgs/18/92299.aspx
ok thanks athapa, I'll check it and let you know
thanks athapa it works just FINE !!