🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14358

Re: String Width and Height in pixels for any given Font

#14358
From: Rodolfo Frino
Date: Mon, 18 Aug 2003 11:38
13 lines
1386 bytes
Perfect! thank you so much Simon. That's exactly what I was looking for.
Goodonu mate!

Rodolfo

> > Does anyone know how to obtain the text width and height in pixels,
> > accurately,
> > using API's?
> >
>
> GetTextExtentPoint32 seems to do what you are looking for
>
> Simon
Technical Details
Message-ID: <3f40baa0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newsfeed.wirehub.nl!207.99.100.182.MISMATCH!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f40405c@newsgroups.borland.com> <Xns93DB73EE0D9CDmacnealliinetnetau@207.105.83.65>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4b951b439ffe2bcb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-18 04:41:33 PST
From: "Rodolfo Frino" <rodolfofrino@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f40405c@newsgroups.borland.com> <Xns93DB73EE0D9CDmacnealliinetnetau@207.105.83.65>
Subject: Re: String Width and Height in pixels for any given Font
Date: Mon, 18 Aug 2003 21:38:28 +1000
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 203.206.21.124
Message-ID: <3f40baa0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061206688 203.206.21.124 (18 Aug 2003 04:38:08 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newsfeed.wirehub.nl!207.99.100.182.MISMATCH!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail