Opened 21 years ago

Last modified 15 years ago

#277 closed defect

TRUETYPE Labels do not work — at Initial Version

Reported by: dlowther@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer CGI Version: 4.0
Severity: normal Keywords:
Cc:

Description

Using Win32 binary download of 3.7 dated 12/5/02.

Both of the following layer defs produce visible layers in 3.6.x.

This layer def produces a map with labels visible:

LAYER
	NAME pct_anno
	GROUP "Administrative Boundaries"
	DATA pc
	STATUS OFF
	TYPE ANNOTATION
	TRANSPARENCY 100
	PROJECTION #GEOGRAPHIC NAD83
		proj=longlat
		ellps=GRS80 
		no_defs 
	END

	LABELITEM "pct_num"
	CLASS
		#NAME "LABELS"
		#MAXSCALE 250000
		#STYLE
		#	COLOR -1 -1 -1
		#END
		LABEL
			#TYPE TRUETYPE
			TYPE BITMAP
			COLOR 255 0 0 
			#SIZE 12
			SIZE tiny
			#FONT ARIAL-BI
	    	POSITION cc
	    	PARTIALS FALSE
	    	BUFFER 0
	    END 
	END 
	METADATA
		"wms_title" "Precinct Labels"
		legend_order "25"
		legend_name "Precinct Labels"
	END
END 


This layer produces a map with no visible layers:

LAYER
	NAME pct_anno
	GROUP "Administrative Boundaries"
	DATA pc
	STATUS OFF
	TYPE ANNOTATION
	TRANSPARENCY 100
	PROJECTION #GEOGRAPHIC NAD83
		proj=longlat
		ellps=GRS80 
		no_defs 
	END

	LABELITEM "pct_num"
	CLASS
		#NAME "LABELS"
		#MAXSCALE 250000
		#STYLE
		#	COLOR -1 -1 -1
		#END
		LABEL
			TYPE TRUETYPE
			#TYPE BITMAP
			COLOR 255 0 0 
			SIZE 12
			#SIZE tiny
			FONT ARIAL-BI
	    	POSITION cc
	    	PARTIALS FALSE
	    	BUFFER 0
	    END 
	END 
	METADATA
		"wms_title" "Precinct Labels"
		legend_order "25"
		legend_name "Precinct Labels"
	END
END

Change History (0)

Note: See TracTickets for help on using tickets.