Re: [Boa Constr] Re: the Editor
Status: Beta
Brought to you by:
riaan
|
From: Riaan B. <riaan@e.co.za> - 2000-03-20 20:07:28
|
db...@in... wrote:
> | To change the font of the Shell page, in line 125 of Editor.py, change
> | self.SetFont(wxFont(9, wxMODERN, wxNORMAL, wxNORMAL, false))
> | to what you want.
> Oki.
> But is it possible to specify a specific font :o).
> I mean in my xterminal I got:
>
> -misc-fixed-medium-r-semicondensed-*-*-120-*-*-c-*-iso8859-1
>
> Is it possible to specify this font ?
>
> I'm under Linux RH 6.0 :o) with wx* 2.13
> --
I don't know how to translate that directly.
This is what the help file says about the parameters for wxFont:
Point size
This is the standard way of referring to text size.
Family
Supported families are: wxDEFAULT, wxDECORATIVE, wxROMAN, wxSCRIPT,
wxSWISS, wxMODERN.
wxMODERN is a fixed pitch font; the others are either fixed or
variable pitch.
Style
The value can be wxNORMAL, wxSLANT or wxITALIC.
Weight
The value can be wxNORMAL, wxLIGHT or wxBOLD.
Underlining
The value can be TRUE or FALSE.
Face name
An optional string specifying the actual typeface to be used.
If NULL, a default typeface will chosen based on the family.
Play around with these and also play around with Boa's font dialog to see if
you can spot it there.
Riaan
|