Bill,
I already took a look at it ! This is quite something !
Holy cow it requires a lot to control text renrering !
I am not sure that I can see from your program how I can read existing
MapInfo Text objects and get the size of rotated text with your WIN API
functions. How would you do it ? Read the MBR of the text object and then
create a text object with WINAPI and check it's size ? I guess the approach
to take is to try to "clone" the MapInfo text object with your WinAPI calls.
Again I am not sure of the way to accomplish this. And then would that be
working OK for most fonts, projections, etc. ?

Thanks !

That goose is a tough one !
A semi-frustrated hunter,

Dany
----- Original Message -----
From: "Bill Thoen" <[EMAIL PROTECTED]>
To: "Dany Bouchard" <[EMAIL PROTECTED]>
Sent: Thursday, June 29, 2000 12:22 PM
Subject: Re: MI MapInfo Fonts -- A Savage Journey into Pointless
Pointsizes - REVISITED


> You might try looking at my TextDemo.zip shareware at
> http://www.directionsmag.com/tools/default.asp?a=file&id=240. It
> journeys deep into the Windows API calls to winkle out the font
> info.
>
> - Bill Thoen
>
>
> > Dany Bouchard wrote:
> >
> > Hello all.
> >
> > I am (too !) trying to read the size of text objects in a
> > MapInfo mapper window with difficulties.
> >
> > Following Bill Thoen's approach here's what I am doing:
> >
> > First I callObjectGeography () to retrieve the minimum bounding
> > rectangle (MBR) of the text object.
> > I then take the vertical distance between the min-Y and max-Y
> > using the distance () function in
> > inches, and divide by the map scale found in MapperInfo
> > (FrontWindow(), MAPPER_INFO_SCALE) (after setting distance
> > units to
> > inches).
> > I get some sort of approximate text size in inches which I then
> > multiply by 72 to get points.
> > Actually, this is not working two badly, since I am more
> > looking for consistency over exact sizes.
> >
> > As expected, trouble begins when you try reading text with an
> > Angle<>0.
> > Has anyone come-up with a method that would give an
> > approximation of the text size provided you have the MBR and
> > angle (and text string lenght if needed) ? I have tryed quickly
> > with Trig functions but could not figure it out.
> >
> > Thanks in advance for anybody helping chasing that goose !
> > I will sum.
> >
> > Dany Bouchard
> > DBx Geomatics
> > 38 de l'Orbite
> > Hull, Qu�bec
> > Canada
> > J9A 3C7
> > T�l�phone/Telephone: 819.743.3870
> > T�l�copieur/Fax: 819.775.3264
> > Courrier �lectronique/Email: [EMAIL PROTECTED]
> > Page Web/Web site: http://www.dbxgeomatics.com/home.asp
> > Vitrine technologique SVG / SVG Technology Preview:
> > http://www.dbxgeomatics.com/svg.asp
>

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to