Article View: borland.public.cppbuilder.nativeapi
Article #4434Re: Problem about Text Metrics (tmInternalLeading)
From: Bob Gonder
Date: Mon, 23 Jan 2006 16:49
Date: Mon, 23 Jan 2006 16:49
22 lines
2073 bytes
2073 bytes
Eyyub Volkan ๏ฟฝektimur wrote: >i didn't used GetTextExtentPoint32. i used GetTextMetrics api to get text >metrics. and calculated text boundary with >tmAscent,tmInternalLeading,tmDescent values. Isn't GetOutlineTextMetrics >returns the same values with GetTextMetrics ? (except more info) For the 45 degree text, the question still remains if your code correctly does the box drawing Trigonometry the same way that MS does it. That's why I asked to see the code. Something I can compile and play with to try to figure it out. >so, how can i get NEWTEXTMETRIC data ? i couldn't find a realated api >method... It is used in the callbacks to the EnumFont... group of functions. See the help page "Enumerating the Installed Fonts" I am also guessing that if you use it in a call to GetTextMetrics on a TrueType font, that the extra members will be filled in, but that's just a guess, and could be wrong.
Technical Details
Message-ID:
<851at1p99do8ies9ecclhq8augl9t26cnh@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn11feed!worldnet.att.net!129.250.175.17!pln-w!lotsanews.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43d0b85b$1@newsgroups.borland.com> <kr72t1lqf9lrur0iar1ob0kh4ftr56fn41@4ax.com> <43d49f33$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4faceab9e12cf298 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Problem about Text Metrics (tmInternalLeading) Date: Mon, 23 Jan 2006 08:49:43 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <851at1p99do8ies9ecclhq8augl9t26cnh@4ax.com> References: <43d0b85b$1@newsgroups.borland.com> <kr72t1lqf9lrur0iar1ob0kh4ftr56fn41@4ax.com> <43d49f33$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 71.0.34.1 X-Trace: newsgroups.borland.com 1138034807 71.0.34.1 (23 Jan 2006 08:46:47 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn11feed!worldnet.att.net!129.250.175.17!pln-w!lotsanews.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail