2 things I noticed today (wxWidgets 2.9 latest SVN)

Vadim Zeitlin vadim at wxwidgets.org
Thu Sep 13 17:59:51 PDT 2007


On Fri, 14 Sep 2007 01:02:45 +0200 Stephan Rose <kermos at somrek.net> wrote:

SR> First:

 It's usually better to use separate posts for separate problems, it's
easier to discuss them like this (and allows you to give each thread a more
descriptive subject). So I'll reply only to this part here and the other
one in a separate message.

SR> I noticed some weird behavior today when using GetPixelSize() while
SR> testing my Windows build.
SR> 
SR> Under GTK, GetPixelSize returns a positive value for the font height as
SR> I would expect. 
SR> 
SR> Under windows however, it returns a negative value.
SR> 
SR> My current workaround is to wrap the returned height with abs() and
SR> things seem to work fine.

 This is almost right, there is a small difference between positive and
negative font height values under Windows but I'm not really sure if it's
important. But wxWidgets should do it itself, of course. I think just
adding abs() around lf.lfHeight in wxNativeFontInfo::GetPixelSize() should
be enough to fix it, could you please check if it is?

 Thanks,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list