This commit is contained in:
parent
cedea519ca
commit
2bf7d2fcf5
@ -409,22 +409,5 @@ namespace Volian.Print.Library
|
|||||||
cb.PdfDocument.NewPage();
|
cb.PdfDocument.NewPage();
|
||||||
OnStatusChanged("StepSection converted to PDF " + section.ShortPath, PromsPrinterStatusType.BuildStep);
|
OnStatusChanged("StepSection converted to PDF " + section.ShortPath, PromsPrinterStatusType.BuildStep);
|
||||||
}
|
}
|
||||||
private SvgPart PageItemToSvgText(PageItem pageItem, string text, float yOffset)
|
|
||||||
{
|
|
||||||
SvgText svgText = new SvgText();
|
|
||||||
svgText.Text = text;
|
|
||||||
E_Justify justify = pageItem.Justify ?? E_Justify.PSLeft;
|
|
||||||
if ((justify & E_Justify.PSLeft) == E_Justify.PSLeft)
|
|
||||||
svgText.Justify = SvgJustify.Left;
|
|
||||||
else if ((justify & E_Justify.PSRight) == E_Justify.PSRight)
|
|
||||||
svgText.Justify = SvgJustify.Right;
|
|
||||||
else
|
|
||||||
svgText.Justify = SvgJustify.Center;
|
|
||||||
svgText.Font = pageItem.Font.WindowsFont;
|
|
||||||
svgText.X = new SvgMeasurement((float)(pageItem.Col ?? 0), E_MeasurementUnits.PT);
|
|
||||||
svgText.Y = new SvgMeasurement((float)(yOffset + pageItem.Row ?? 0), E_MeasurementUnits.PT);
|
|
||||||
if (svgText.Font.Underline && svgText.Text.EndsWith(" ")) svgText.Text = svgText.Text.Substring(0, svgText.Text.Length - 1) + "\xA0";// replace last space with a hardspace
|
|
||||||
return svgText;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user