[pywin32-bugs] [ pywin32-Bugs-1879894 ] CreateFont 'italic' keyword is working improperly
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-01-25 17:51:38
|
Bugs item #1879894, was opened at 2008-01-25 20:51 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1879894&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sergei Cherepanov (insane_hunter) Assigned to: Nobody/Anonymous (nobody) Summary: CreateFont 'italic' keyword is working improperly Initial Comment: dc.CreateFont creates an italic font when 'italic' key is just specified, despite its value, e.g. dc.CreateFont({'name': 'My font', ..., 'italic': False}) creates italicized font and dc.CreateFont({'name': 'My font', ...}) creates regular one. Possible reason: /pywin32/Pythonwin/win32util.cpp rev. 1.12 DictToLogFont function: 317 318 v = PyDict_GetItemString (font_props, (char *)szFontItalic); 319 if (v != NULL && v != Py_None) 320 pLF->lfItalic = TRUE; 321 Seems to ignore the value stored in dict parameter. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1879894&group_id=78018 |