[wxpython-users] Re: Font for the demo sources
Mikhail
termim at gmail.com
Fri May 2 09:25:39 PDT 2008
Robin Dunn <robin <at> alldunn.com> writes:
> Mike Driscoll wrote:
> > self.StyleSetSpec(stc.STC_STYLE_DEFAULT,
> > "face:%(helv)s,size:%(size)d" % faces)
> >
>
> Also look at the faces dict further up the file.
>
I've found the place in Main.py where the defaults are set up in
DemoCodeeditor.SetUpEditor. It appears that on MSW and GTK platforms
the font size is hard coded. It looks like on MSW it is better to
let Scintilla to choose default font size (as is now on MAC) and on GTK -
to use wx.SystemSettings.GetFont(wx.SYS_ANSI_FIXED_FONT).GetPointSize()
as a default. I've tried it on WinXP and SuSE10.3(KDE).
Robin, I've submitted a patch on SF (#1956218), could you take a look at it?
Regards,
Mikhail
More information about the wxpython-users
mailing list