Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can we use math symbols in a widget label??

Status
Not open for further replies.

RajVerma

Programmer
Jun 11, 2003
62
DE
hi,

in the label of my widget I want to use some math symbols like quantifications(Universal or Existential), Sigma etc. what is the best way to do that?

thanx in adv,
Raj.
 
You can set the font for the label to symbol (-font {symbol}), but that will only work if you want to have the whole label in that font.

Bob Rashkin
rrashkin@csc.com
 
hi,

the font, symbols, only has the greek symbols. but I want to have the symbols of greater-than-or-equal, less-than-or-equal, universal quantification, existential quantification, conjunction, disjunction and negation.

is there a way to get these symbols in a fairly simple way?

cheers,
Raj.
 
The simplest way is probably to build each symbol as a bitmap and use the -image option or the -bitmap option to put it in the label.

A less robust way would be to find a font that has the symbols you want, if such exists, and use that. This makes the application very platform-specific, though.

_________________
Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top