Lino Website

Win32TextPrinter uses LOGFONT instead of fontDict

Saturday, 12. August 2006 18:56.

I observed that selecting fontName and charset caused the problem win32ui: CDC::TextOut failed - The parameter is incorrect. (10.08.06). Preparing for new tests.

I use now LOGFONT() and CreateFontIndirect() from win32gui instead of fontDict and CreateFont() from win32ui. The latter requires me to specify a fontName while with the former I can specify logfont.lfPitchAndFamily=win32con.FIXED_PITCH

Resources consulted:

Refering articles:

Copyright 2001-2007 Luc Saffre.
http://lino.saffre-rumma.ee
Generated 2007-06-07 16:22:48