Article View: borland.public.cppbuilder.nativeapi
Article #4518Problem about Text Metrics (tmInternalLeading)
From: Eyyub Volkan �ektimur
Date: Fri, 20 Jan 2006 10:20
Date: Fri, 20 Jan 2006 10:20
68 lines
2947 bytes
2947 bytes
Hi,
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 seached many sources, and found that;
Characteristics of a font;
}
} External Leading - space above the
font to the top of the text area
__________________}_______________________________________-> Top Alignment
Line
**
} }
* ** } Internal Leading } }
} }
}
*
} }
**
} } Height
* * * *** } Ascent }
* * * *
} }
* ** *
} }
* *
} }
}
* }
}
but i couldn't fit a bounding box to written text... can someone pls help me
? what am i missing ? is there any other metrics should i use ?
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
i consider top & base lines as;
** *
* **
____________________ Top Line
* *
** *
* * * ***
* * * * *
* ** * *
* * ***------------------------- Base Line
*
*
thx so much for help...
________________________________________
Eyyub Volkan �ektimur
Proya Software & Trade Inc.
Head of Core Development Department
Technical Details
Message-ID:
<43d0b85b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4faceab9e12cf298,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Problem about Text Metrics (tmInternalLeading) Date: Fri, 20 Jan 2006 12:20:05 +0200 Lines: 70 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 213.232.9.2 Message-ID: <43d0b85b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1137752155 213.232.9.2 (20 Jan 2006 02:15:55 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail