Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1819 closed defect (fixed)

Plot To DWF generates horizontal lines for small font sizes

Reported by: trevorwekel Owned by: waltweltonlair
Priority: low Milestone: 2.2
Component: Mapping Service Version: 2.2.0
Severity: minor Keywords: plot dwf
Cc: waltweltonlair External ID:

Description

When generating a DWF plot, very small text sizes can be drawn as horizontal lines instead of scaled text. This is due to a rendering optimization for screen displays which draws very small text as a line because most text is not readable if drawn at a height of 3 pixels or less.

When the plotted DWF is zoomed in using the DWF viewer, the visible height of the text increases and the text should become readable. However, the line approximation removes the original text from the DWF plot yielding unexpected results.

Attachments (1)

plotToDwf.patch (784 bytes ) - added by trevorwekel 13 years ago.
Patch to disable text as line optimization for DWF renderer

Download all attachments as: .zip

Change History (6)

by trevorwekel, 13 years ago

Attachment: plotToDwf.patch added

Patch to disable text as line optimization for DWF renderer

comment:1 by waltweltonlair, 13 years ago

This patch also affects rendering of geometry - geometry will rendered as is, and no points will be removed.

In the case of generating a static EPlot the fix in the patch makes sense. But when rendering dynamic EMaps we want OptimizeGeometry to be true.

So the patch needs to be adjusted to only set OptimizeGeometry to false when generating a static EPlot.

comment:2 by waltweltonlair, 13 years ago

Actually I was a bit confused. The setting that controls whether or not geometry is "optimized" is the GeneralizeData rendering service property, and it only applies to AGGRenderer and GDRenderer. DWFRenderer always "optimizes" geometry.

The SE_Renderer::OptimizeGeometry flag is currently only used for optimizing display of text.

But my original point is still valid - we only want to disable OptimizeGeometry when drawing a static EPlot, and so the override should be set in EPlotRenderer and not DWFRenderer.

comment:3 by waltweltonlair, 13 years ago

Owner: changed from trevorwekel to waltweltonlair
Status: newassigned

comment:4 by waltweltonlair, 13 years ago

Resolution: fixed
Status: assignedclosed

Fixed in the trunk stream with revision r6153.

comment:5 by trevorwekel, 13 years ago

Thanks Walt,

I may apply your version of the fix (EPlot only) to the MapGuide 2.2 open source branch as well.

Note: See TracTickets for help on using tickets.