|
var
LogFont: TLogFont; //这个类我不熟悉??
theFont: TFont;
begin
with Form1.Canvas do
begin
Font.Name := '宋体';
Font.Size := 18;
Font.Color := clYellow;
theFont := TFont.Create;
theFont.Assign( Font );
GetObject( theFont.Handle, Sizeof(LogFont), @LogFont ); //gettobject不是
LogFont.lfEscapement := 450; // 45度 ?? //加载文件对象吗?
LogFont.lfOrientation := 450; // 45度 ??
theFont.Handle := CreateFontIndirect( LogFont ); //???
Font.Assign( theFont );
theFont.Free;
TextOut( X, Y, 'Hello!' );
end;
end;
该段代码能实现字体的旋转很多地方我搞不懂
请大家指导 |
|