Opened 14 years ago

Last modified 14 years ago

#3542 new defect

Legend Image size smaller than it should

Reported by: lightglitch Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: unspecified
Severity: major Keywords:
Cc:

Description

The legend size is not correctly calculated when using bold fonts. In the attachments you can see an example using verdana and verdana-bold, the second one cuts the labels.

Attachments (2)

3e6b9020-f834-41dd-b1b5-70970eb13c0e.png (13.4 KB ) - added by lightglitch 14 years ago.
1826fe54-73d4-4e9e-9a13-d11576583f60.png (14.8 KB ) - added by lightglitch 14 years ago.

Download all attachments as: .zip

Change History (4)

by lightglitch, 14 years ago

by lightglitch, 14 years ago

comment:1 by sdlime, 14 years ago

How were these generated? MapScript, CGI or something else? MapServer really knows nothing about bold or not bold, it's just a font. So there's nothing in the MapServer code itself that I could see causing this. It's more likely down in the graphics libraries or even Freetype.

Also need: MapServer version, GD or AGG (which versions), your legend mapfile snippet.

Steve

comment:2 by lightglitch, 14 years ago

I'm using MapServer version 5.6.5 cgi.

	# Output Settings
	IMAGETYPE aggpng24
	TRANSPARENT OFF
	
	LEGEND
		STATUS ON
		KEYSIZE 20 15
		KEYSPACING 5 5
		LABEL
			TYPE TRUETYPE
			ANTIALIAS TRUE			
			COLOR 0 0 0
			FONT verdana
			SIZE 8
		END
	END

If you need anything ...

Note: See TracTickets for help on using tickets.