by nageswaragunupudi » Fri Feb 12, 2010 3:36 pm
We can not change the font attributes of the same font object after definition. But we can derive a new font object with changing some attributes and set the new font to the control. In many cases it is much easier than the method suggested in testfon3.prg.
Examples:
DEFINE FONT oFont NAME 'TAHOMA' SIZE 0,-12
oBold := oFont:Bold( .t. )
oBoldItalic := oBold:Italic( .t. )
Methods available are :
METHOD Bold( lOnOff )
METHOD Italic( lOnOff )
METHOD Underline( lOnOff )
METHOD StrikeOut( lOnOff )
METHOD Escapement( nEsc )
METHOD Rotate( n )
METHOD Modify( nHeight, lBold, lItalic, lUnderline, lStrikeOut, nEscapement )
Regards
G. N. Rao.
Hyderabad, India