|
var
LogFont: TLogFont; // I'm not familiar with this class? ?
theFont: TFont;
begin
with Form1.Canvas do
begin
Font.Name: = 'Songti';
Font.Size: = 18;
Font.Color: = clYellow;
theFont: = TFont.Create;
theFont.Assign (Font);
GetObject (theFont.Handle, Sizeof (LogFont), @LogFont); // gettobject is not
LogFont.lfEscapement: = 450; // 45 degrees ?? // load file object?
LogFont.lfOrientation: = 450; // 45 degrees ??
theFont.Handle: = CreateFontIndirect (LogFont); // ???
Font.Assign (theFont);
theFont.Free;
TextOut (X, Y, 'Hello!');
end;
end;
This piece of code can achieve font rotation in many places I don't understand
Please guide |
|