>Right now I'm using MapInfo 5.0 & MapBasic 5.0 to search some text (e.g.
>street name) from the map and change the font size & color.  I used the
>command "Makefont(0,20,red,-1)" to replace the original text.  It changed
>the style, font color and background color for me but it couldn't change
>the font size.  Since the color & style were changed, it showed that this
>line of command was executed successfully.  But why it couldn't change the
>font size?  No matter what size I set in the program source code, the font
>size still kept the same as it was in the map.  Would there be any
>constrains in the program or in the map or even in the workspace?

The problem is that once a text object is placed in a table (on a map),
its size is no longer controled by font size, but instead by the minimum
bounding rectangle (MBR).

To modify its size, you need to modify its minumum or maximum coordinates.
For example, to reduce the size of object o in half use these two
statements:
Alter Object o Geography 4, (ObjectGeography(o, 2)+ObjectGeography(o, 4))/2
Alter Object o Geography 3, (ObjectGeography(o, 1)+ObjectGeography(o, 3))/2



----------------------------------------------------------------------
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