Hi Jonathan,
I sent response to the wrong thread yesterday.
Here’s a simple implementation of CustomLabelPrinterLayer which do not wrap nor auto resize text font.
class CustomLabelPrinterLayer : LabelPrinterLayer
{
protected override void DrawCore(GeoCanvas canvas, Collection labelsInAllLayers)
{
if (String.IsNullOrEmpty(base.Text))
{ return; }
double oneToOneScale = PrinterHelper.GetPointsPerGeographyUnit(canvas.MapUnit);
float drawingSize = (float)(Font.Size * oneToOneScale / canvas.CurrentScale);
GeoFont drawingFont = new GeoFont(Font.FontName, drawingSize, Font.Style);
RectangleShape currentBoundingBox = GetBoundingBox();
canvas.DrawTextWithWorldCoordinate(base.Text, drawingFont, TextBrush, currentBoundingBox.GetCenterPoint().X, currentBoundingBox.GetCenterPoint().Y, DrawingLevel.LabelLevel);
}
}
Thanks,
Jack