Setting size for wx.FontFromPixelSize

jmf jfauth at bluewin.ch
Tue May 1 10:30:32 PDT 2007


 > any ideas?

Hi Chris,

This will not help, it may give some infos.

Long time ago when I was a Visual Basic developer (win platform),
I was using a gdi.dll API function called CreateFont(...) in order
to create a font "in pixel" size. This function was very popular to
draw rotated texts on a DC. We had to define the width and the height
of the created font.

I'm not a core wxWidgets developer, I will not be suprised
if the FontFromPixelSize function is a wrapper around the
CreateFont function or something like this.

Interestingly, the function <wxFont>.GetNativeFontInfoDesc
returns values corresponding to the arguments of the CreateFont()
function.

Did you notice the name argument in FontFromPixelSize is
underlined (with a d), while it is underline in wx.Font()
constructor? Error?

First item when googling vb createfont:
http://www.developer.com/net/vb/article.php/610261

Jean-Michel Fauth, Switzerland





More information about the wxpython-users mailing list