![]() |
| ||
| Note that the angle is in 1/10 of degrees. Any attempt to manipulate font.size or font.color will reset the angle to zero degrees. |
procedure SetTextAngle(F:Tfont; angle: Word); var LogRec: TLOGFONT; begin GetObject(f.Handle,SizeOf(LogRec),Addr(LogRec)); LogRec.lfEscapement := angle; f.Handle := CreateFontIndirect(LogRec); end;