//旋转字体
procedure TForm1.Button1Click(Sender: TObject);
var
lf:tlogfont;
tf:tfont;
begin
with form1.Canvas do
begin
font.Name:='黑体';
font.Size:=24;
tf:=tfont.Create;
tf.Assign(font);
getobject(tf.handle,sizeof(lf),@lf);
lf.lfEscapement:=450;
lf.lfOrientation:=450;
tf.handle:=createfontindirect(lf);
font.assign(tf);
tf.Free;
textout(20,height div 2,'你好');
end;
end;