var
m: LOGFONT;
hdc1: HDC;
N,O: HGDIOBJ;
s: string;
x, y: integer;
begin
m.lfHeight := -80;
m.lfWidth := 0;
m.lfEscapement := 450;
m.lfOrientation := 0;
m.lfWeight := FW_HEAVY;
m.lfItalic := 0;
m.lfUnderline := 0;
m.lfStrikeOut := 0;
m.lfCharSet := GB2312_CHARSET;
m.lfOutPrecision := OUT_STROKE_PRECIS;
m.lfClipPrecision := CLIP_STROKE_PRECIS;
m.lfQuality := DRAFT_QUALITY ;
m.lfPitchAndFamily := VARIABLE_PITCH + FF_MODERN;
StrPCopy(m.lfFaceName, '楷体_GB2312');
s := '汉字';
x := 13;
y := 103;
hdc1 := GetDC(Self.Handle);
N := CreateFontIndirect(m);
O := SelectObject(hdc1, N);
SetBKMode(hdc1, TRANSPARENT);
SetTextColor(hdc1, GetSysColor(COLOR_3DDKSHADOW));
TextOut(hdc1, x+2, y-2, PChar(s), Length(s));
TextOut(hdc1, x+2, y+2, PChar(s), Length(s));
SetTextColor(hdc1, GetSysColor(COLOR_HIGHLIGHT));
TextOut(hdc1, x+1, y-2, PChar(s), Length(s));
TextOut(hdc1, x-2, y+1, PChar(s), Length(s));
TextOut(hdc1, x-2, y-2, PChar(s), Length(s));
SetTextColor(hdc1, GetSysColor(COLOR_3DSHADOW));
TextOut(hdc1, x-1, y+1, PChar(s), Length(s));
TextOut(hdc1, x+1, y-1, PChar(s), Length(s));
TextOut(hdc1, x+1, y+1, PChar(s), Length(s));
SetTextColor(hdc1, GetSysColor(COLOR_3DLIGHT));
TextOut(hdc1, x, y-1, PChar(s), Length(s));
TextOut(hdc1, x-1, y, PChar(s), Length(s));
TextOut(hdc1, x-1, y-1, PChar(s), Length(s));
BeginPath(hdc1);
TextOut(hdc1, x, y, PChar(s), Length(s));
EndPath(hdc1);
SetPolyFillMode(hdc1, WINDING);
StrokeAndFillPath(hdc1);
N:=SelectObject(hdc1, O);
DeleteObject(N);
end;