Re: changing font type on a widget [message #63046] |
Thu, 23 October 2008 13:28 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Cindy writes:
> How do I change the font and size of text on a button (or other
> widget)? For example...
>
> myButton = Widget_Button(myBase, value='Test')
>
> How can I change 'Test' to say 'Times' and increase it's size by 2.
On my Windows machine, I would do it like this:
myButton = Widget_Button(myBase, value='Test', font='times*24')
On my Linux machine, I would do it like this:
myButton = Widget_Button(myBase, value='Test', font='-adobe-times-
medium-r-normal--24-240-75-75-p-124-iso8859-1')
> What are the size units?
I've no idea. Font "sizes" are normally expressed as "point sizes".
But as far as I know, these have "meaning" only when you are printing
something with a printing press. I don't think they really have
meaning when you are talking about something on a display. :-)
Cheers,
David
|
|
|