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:
- msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8fp0.asp
- msdn2.microsoft.com/en-us/library/2ek64h34.aspx
- pywin32 sources (pywin32-209.zip) : win32gui.i win32font.cpp
- win32\demos\print_desktop.py
Refering articles:
- Font height/width ratio with Win32TextPrinter (Fixed bugs 22.09.06) — Win32TextPrinter.setCpi() rendered the characters a little bit bigger than they should. more