//简单点可以这样<br>procedure TForm1.FormPaint(Sender: TObject);<br>begin<br> TextOut(Self.Canvas.Handle, 100, 100, '我是猪猪', 8);<br>end;<br>//麻烦点可以这样<br>procedure TForm1.FormPaint(Sender: TObject);<br>var<br> Fnt: TFont;<br>begin<br> Fnt := TFont.Create;<br> Fnt.Assign(Self.Canvas.Font);<br> with Self.Canvas.Font do<br> begin<br> Name := '隶书';<br> Color := clGreen;<br> Charset := GB2312_CHARSET;<br> Size := 56;<br> end;<br> TextOut(Self.Canvas.Handle, 100, 100, '我是猪猪', 8);<br> Self.Canvas.Font.Assign(Fnt);<br> Fnt.Free;<br>end;