问题来源: http://www.cnblogs.com/del/archive/2010/01/09/1643019.html#1746542
procedure TForm1.FormPaint(Sender: TObject); var x,y: Integer; str: string; begin x := 10; y := 10; str := '今天'; Canvas.Font.Name := '黑体'; Canvas.Font.Size := 56; Canvas.Brush.Style := bsClear; { ! } Canvas.Font.Color := clBlue; Canvas.TextOut(x, y, str); Canvas.Font.Color := clWhite; Canvas.TextOut(x-3, y-3, str); end;