Re: [python-win32] Fonts behaving differently - The plot thickens a bit

2011-03-06 Thread Greg Ewing
Roger Upole wrote: The conversion in win32ui has changed since 212. At one time it was negating the height that was passed in: if (PyInt_Check (v)) pLF->lfHeight = -PyInt_AsLong(v); Ah, that explains it all! You can also extract the version embedded in the pyd's using win32api.GetFileV

Re: [python-win32] Fonts behaving differently - The plot thickens a bit

2011-03-06 Thread Roger Upole
Mark Hammond wrote: news:4d731ec1.4060...@gmail.com... > On 6/03/2011 3:07 PM, Greg Ewing wrote: >> I think I've narrowed down what's going on with the font >> sizes a bit more. It has to do with the interperetation >> of the nHeight parameter to CreateFont. >> >> It appears that you can specify

Re: [python-win32] Fonts behaving differently - The plot thickens a bit

2011-03-05 Thread Mark Hammond
On 6/03/2011 3:07 PM, Greg Ewing wrote: I think I've narrowed down what's going on with the font sizes a bit more. It has to do with the interperetation of the nHeight parameter to CreateFont. It appears that you can specify the height using either a positive or negative number. One is taken to

[python-win32] Fonts behaving differently - The plot thickens a bit

2011-03-05 Thread Greg Ewing
I think I've narrowed down what's going on with the font sizes a bit more. It has to do with the interperetation of the nHeight parameter to CreateFont. It appears that you can specify the height using either a positive or negative number. One is taken to include the font's internal leading, and