🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#14353
From: Simon Macneall
Date: Mon, 18 Aug 2003 03:22
11 lines
1253 bytes
"Rodolfo Frino" <rodolfofrino@yahoo.com> wrote in
news:3f40405c@newsgroups.borland.com: 

> 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: <Xns93DB73EE0D9CDmacnealliinetnetau@207.105.83.65>
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!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!216.65.3.53.MISMATCH!news-out.superfeed.net!propagator2-maxim!feed-maxim.newsfeeds.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f40405c@newsgroups.borland.com>

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-17 20:40:18 PST
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: String Width and Height in pixels for any given Font
From: Simon Macneall <macneall-at-iinet.net.au>
References: <3f40405c@newsgroups.borland.com>
Message-ID: <Xns93DB73EE0D9CDmacnealliinetnetau@207.105.83.65>
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: 203.161.112.198
Date: 17 Aug 2003 20:22:59 -0700
X-Trace: newsgroups.borland.com 1061176979 203.161.112.198 (17 Aug 2003 20:22:59 -0700)
Lines: 11
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!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!216.65.3.53.MISMATCH!news-out.superfeed.net!propagator2-maxim!feed-maxim.newsfeeds.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail