PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

Text Justification should not apply to last line or before line breaks

Open kribensa opened this issue 4 months ago • 1 comments

When using a TextFormatAlignment with Horizontal = XParagraphAlignment.Justify on a large block of text, the main block of text is correctly justified, but the last line, which often contains much less text than would fit on a line is "over" justified and very spread out A similar issue occurs on the line before a line break

eg Image

I would have expected it to Left Justify the last line, resulting in this nicer looking text

Image

kribensa avatar Aug 29 '25 11:08 kribensa