๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem about Text Metrics (tmInternalLeading)

#4520
From: Bob Gonder
Date: Fri, 20 Jan 2006 18:03
31 lines
2217 bytes
Eyyub Volkan ๏ฟฝektimur wrote:

>i have problems about metrics. i'm using "GetTextMetrics" api command to
>query metrics. the problem is, tmInternalLeading does not fit (especially at
>rotation). i prepared a .jpg file to show that situation (it's hard to
>mention it with characters :) )
>
>http://www.proyatech.com/TextMetrics.jpg
I would suggest adding to that jpg, a graphic of what you want to do.

{incomprehensible ascii graphics sniped}

>Problem :
>    1. i can't make a exact bounding box (especially at rotation)
>    2. base line (+tmAscent) always stable bot top line (+tmInternalLeading)
>is not stable
>    3. i really need to calculate base line & top line

So you want to draw the yellow lines in your graphic?
What is your current code to do this?
(Show the 45 degree code if it is different)

Have you looked at GetTextExtentPoint32() ?
Maybe GetOutlineTextMetrics()
<quote>
An application can retrieve the physical dimensions of a TrueType font
by calling the GetOutlineTextMetrics function. An application can
retrieve the physical dimensions of any other font by calling the
GetTextMetrics function.</quote>

You might also be interested in the new members in NEWTEXTMETRIC.
Technical Details
Message-ID: <kr72t1lqf9lrur0iar1ob0kh4ftr56fn41@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43d0b85b$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: Fri, 20 Jan 2006 10:03:24 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <kr72t1lqf9lrur0iar1ob0kh4ftr56fn41@4ax.com>
References: <43d0b85b$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: 69.69.88.252
X-Trace: newsgroups.borland.com 1137780035 69.69.88.252 (20 Jan 2006 10:00:35 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail