|
The Font class
A font instance is returned from by a panels font property.
Attributes of the Font class
| Attribute |
Access |
Type |
Description |
| name |
R/W |
string |
the font family name, like 'Arial', 'Courier',
'Tahooma' etc |
| size |
R/W |
int |
the font size in pixels |
| color |
R/W |
string |
the font color, 'red','blue', '0xffffff' |
| bold |
R/W |
bool |
the font style bold |
| italic |
R/W |
bool |
the font style italic |
| underline |
R/W |
bool |
the font style underline |
| strikeout |
R/W |
bool |
the font style strikeout |
| style |
R/W |
style |
style binary, bit0=bold, bit1=italic,
bit2=underline,bit3=strikeout |
| orientation |
R/W |
float |
text angle |
Script Example:
#the belove example modifies the
font properties of a panel object
panel=GetResultPanel()
panel.caption='OK'
panel.color='green'
# modifying the panel font
panel.font.size=14
panel.font.color='blue'
panel.font.bold=1
|