[mapserver-users] Font sizing problem in MS 5 (with inline feature)

Doyon, Jean-Francois jdoyon at NRCan.gc.ca
Tue Mar 25 07:07:25 PDT 2008


G'day,

Still on the path to upgrade to MS 5 and a couple of problems left ...

The one that preoccupies me right now is the fact that I have a truetype label that won't size properly.

The layer is defined as:

        LAYER
                NAME "northarrow"
                STATUS OFF
                TYPE ANNOTATION
                LABELCACHE OFF
                MINSCALE 0
                MAXSCALE 5000000.00001
                TRANSFORM FALSE
                GROUP north_arrow
                METADATA
                        "checkable"    "0"
                        "legend_order"    "-1"
                        "LEGEND_GROUP" "base"
                END
		    FEATURE
                  	POINTS 40 40 END
                        TEXT "+"
		    END
                CLASS
        	        LABEL
				COLOR 0 0 0
                        TYPE truetype
                        FONT esri_1
                        SIZE 65
                        FORCE TRUE
				OUTLINECOLOR 255 255 255
			  END
		    END
	  END

This puts a north arrow in the top left corner of the map image.  The LABEL ANGLE is set dynamically via URL.  I don't recall exactly why we used a label instead of a symbol, but there must've been a good reason ...

An example in MS 4.8.1 can be viewed here:

http://atlas.nrcan.gc.ca/site/english/maps/topo/map?mapsize=428+380&scale=5000000.000000&mapxy=1516867.58194739+-209769.54479788843&mode=zoomin&layers=north_arrow%20other_features%20million_grid%20t50k_grid%20grid_50k_3%20roads%20hydrography%20boundary%20builtup%20vegetation%20populated_places%20railway%20power_network%20manmade_features%20designated_areas%20water_features%20water_saturated_soils%20relief%20contours%20toponymy%20contour%20nodata_ntdb_50k

In MS 5, the "label" appears incredibly small (I can barely make out it's shape, it's a few pixels big), and playing with SIZE seems to do nothing at all.  I've changed the TEXT value, and the label seems to change shape but still no change in size.

Anyone know what's going on?  I didn't see any documented changes that look like they should affect this ...

Thanks,

Jean-François Doyon
Applications Development Solutions | Solutions de développement d'applications
IT Support Services | Services de support TI
Information Technology Services | Services de la technologie d'information
Shared Services Office | Bureau des services partagés
Corporate Management and Services Sector | Secteur de la gestion et des services intégrés
Natural Resources Canada | Ressources naturelles Canada
Ottawa, Canada K1A 0E9
jdoyon at nrcan-rncan.gc.ca
Telephone | Téléphone 613-992-4902
Facsimile | Télécopieur 613-995-3252
Teletypewriter | Téléimprimeur 613-996-4397
Government of Canada | Gouvernement du Canada

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080325/8d48b0fe/attachment.htm>


More information about the MapServer-users mailing list