Lino Website

Problem reports

prnprint used an unexpected font

Sunday, 15. October 2006 16:00.

prnprint produced unexpected result on a machine that had another monotype font besides "Courier New" installed. I changed Win32TextPrinter to request "Courier New" as font face name. And I added a new command-line parameter --fontName in case somebody wants to use another font than Courier New.

Background: until now I left the lfFaceName parameter of my LOGFONT to None. So Windows just chose the first suitable font that was monospaced and available with an OEM charset. This usually returned "Courier New". But not always... It seems that for example AutoCAD light installs a monospaced font other than Courier.

Refering articles:

Copyright 2001-2007 Luc Saffre.
Generated 2007-06-07 16:22:51