๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem about Text Metrics (tmInternalLeading)

#4442
From: Bob Gonder
Date: Tue, 24 Jan 2006 20:16
25 lines
1861 bytes
Eyyub Volkan ๏ฟฝektimur wrote:

I don't do VCL, so it'll take a while to translate to Winapi.
But off hand, this looks suspicious...

> double             RotAngle=0;
>    double      Radyan;
>    Radyan=M_PI*RotAngle/180;

Would prefere to see
    Radyan = (M_PI * RotAngle) / 180.0;


Also, rather than
>    lf.lfOrientation=RotAngle*10;
>    lf.lfOrientation=lf.lfOrientation%(360*10);
Would prefer to see

	RotAngle = RotAngle%360;
	// Set Rotation
	if (RotAngle!=0)
	{	{....}
		lf.lfOrientation = RotAngle * 10;

That would also catch errors for Radyan
Technical Details
Message-ID: <8a1dt19a0kbk35sqtoq6sqdl5a2hn68u9i@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43d0b85b$1@newsgroups.borland.com> <kr72t1lqf9lrur0iar1ob0kh4ftr56fn41@4ax.com> <43d49f33$1@newsgroups.borland.com> <851at1p99do8ies9ecclhq8augl9t26cnh@4ax.com> <43d641c4$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: Tue, 24 Jan 2006 12:16:40 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <8a1dt19a0kbk35sqtoq6sqdl5a2hn68u9i@4ax.com>
References: <43d0b85b$1@newsgroups.borland.com> <kr72t1lqf9lrur0iar1ob0kh4ftr56fn41@4ax.com> <43d49f33$1@newsgroups.borland.com> <851at1p99do8ies9ecclhq8augl9t26cnh@4ax.com> <43d641c4$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.35.226
X-Trace: newsgroups.borland.com 1138133621 71.0.35.226 (24 Jan 2006 12:13:41 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail