Daniel,
I am testing my autostyling of DGN labels. I have it working with true type
fonts now and suddenly the labels are no longer being colored properly.
I have determined that new colors added to the map palette in msLayerGetAutoStyle
may not get added to the gdImg palette. In particular, when I render anti-aliases
labels, the gd and freetype code add extra colors to the gdImg palette for the
edge pixels with mixed colors. If a later label with a new color is
encountered by msLayerGetAutoStyle() it gets added to the map palette.
However, the subsequent call to msUpdatePalette() fails to copy the new color
over to the gdImg palette since that slot is already occupied by anti-aliasing
colors that were never in the map palette.
The result is that the labels are colored improperly.
I am not sure what the solution is. Perhaps before calls to
msLayerGetAutoStyle() any extra gdImg colors should be (at least temporarily?)
propagated into the map's palette. What are the issues with doing that?
Best regards,
msLayerGetAutoStyle w
1)