🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #12175

Re: GetOutlineTextMetrics

#12175
From: Michael Winter
Date: Fri, 22 Nov 2002 21:24
14 lines
1467 bytes
Camiel Wijffels schrieb:
> 
> > Try this:
> >     OTM.otmSize := SizeOf(TOutlineTextMetric);
> >     GetOutlineTextMetrics(Canvas.Handle, OTM.otmSize, @OTM);
> Sorry - it still doesnt work....

What's the result of the function call, and if it's false, what's the
GetLastError value?

Note that the function requires a Truetype font to be selectd in the
Canvas. Delphi's standard form font MS Sans Serif isn't one.

-Michael
Technical Details
Message-ID: <3ddea72c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <3ddd275d@newsgroups.borland.com> <3ddd295d$1@newsgroups.borland.com> <3dde5f70$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,841b2e3a213340b2
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2002-11-22 14:15:47 PST
Date: Fri, 22 Nov 2002 22:24:09 +0100
From: Michael Winter <delphi.net@gmx.net>
X-Mailer: Mozilla 4.51 [de]C-CCK-MCD QXW03200  (Win98; I)
X-Accept-Language: de,en
MIME-Version: 1.0
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: GetOutlineTextMetrics
References: <3ddd275d@newsgroups.borland.com> <3ddd295d$1@newsgroups.borland.com> <3dde5f70$2@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Hamster/1.3.23.205
NNTP-Posting-Host: 145.254.208.154
Message-ID: <3ddea72c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038001964 145.254.208.154 (22 Nov 2002 13:52:44 -0800)
Lines: 14
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail