Chris,
Thanks,
tried this and works fine.
Dave Parsons
Simply Software
To make the Canvas’s current font antialiased (remember it must be a
TrueType font), do this:
[code lang=”delphi”]var
lf : TLogFont;
begin
GetObject(Canvas.Font.Handle, SizeOf(TLogFont), @lf);
lf.lfQuality := ANTIALIASED_QUALITY;
Canvas.Font.Handle := CreateFontIndirect(lf);
Canvas.TextOut(0,0,’Hello’);
end;
[/code]
>On Tue, 6 Apr 1999 22:28:26 +0100, “Dave Parsons”
> wrote:
>
>How can I draw antialiased fonts on my canvas ?
>
>I have found the following defines in the windows unit and a reference to
>>”ANTIALIASED_QUALITY ”
>>but where do I plug this value in ?
>>
>>Ideally i need to use a call similar to
>>
>> TextOut(.,.,..,..);
>>
>>Any help would be appreciated
>
>Chris Hill
>
Chris244@aol.com
[tags]Delphi, Graphic, Fonts[/tags]
0 Kommentare zu “Fonts: Antialiased Font”