{"id":144,"date":"2007-05-12T16:09:11","date_gmt":"2007-05-12T14:09:11","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/fonts-antialiased-font\/"},"modified":"2007-05-12T16:09:12","modified_gmt":"2007-05-12T14:09:12","slug":"fonts-antialiased-font","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/fonts-antialiased-font\/","title":{"rendered":"Fonts: Antialiased Font"},"content":{"rendered":"<p>Chris,<br \/>\n   Thanks,<br \/>\n              tried this and works fine.<\/p>\n<p>Dave Parsons<br \/>\nSimply Software<\/p>\n<p>To make the Canvas&#8217;s current font antialiased (remember it must be a<br \/>\nTrueType font), do this:<\/p>\n<p>[code lang=&#8221;delphi&#8221;]var<br \/>\n  lf : TLogFont;<br \/>\nbegin<br \/>\n  GetObject(Canvas.Font.Handle, SizeOf(TLogFont), @lf);<br \/>\n  lf.lfQuality := ANTIALIASED_QUALITY;<br \/>\n  Canvas.Font.Handle := CreateFontIndirect(lf);<br \/>\n  Canvas.TextOut(0,0,&#8217;Hello&#8217;);<br \/>\nend;<br \/>\n[\/code]<\/p>\n<p>>On Tue, 6 Apr 1999 22:28:26 +0100, &#8220;Dave Parsons&#8221;<br \/>\n> wrote:<br \/>\n><br \/>\n>How can I draw antialiased fonts on my canvas ?<br \/>\n><br \/>\n>I have found the following defines in the windows unit and a reference to<br \/>\n>>&#8221;ANTIALIASED_QUALITY &#8221;<br \/>\n>>but where do I plug this value in ?<br \/>\n>><br \/>\n>>Ideally i need to use a call similar to<br \/>\n>><br \/>\n>>      TextOut(.,.,..,..);<br \/>\n>><br \/>\n>>Any help would be appreciated<br \/>\n><br \/>\n>Chris Hill<br \/>\n><br \/>\n Chris244@aol.com <\/p>\n<p>[tags]Delphi, Graphic, Fonts[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chris, Thanks, tried this and works fine. Dave Parsons Simply Software To make the Canvas&#8217;s current font antialiased (remember it must be a&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[75,103,101],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-2k","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/144"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=144"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/144\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}