PdfSharpCore
PdfSharpCore copied to clipboard
Text Justification should not apply to last line or before line breaks
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
I would have expected it to Left Justify the last line, resulting in this nicer looking text
Note - this logic was in place in XTextFormatter.cs in Nov 17, 2023 but was lost in the move to using TextFormatAlignment on Jul 25, 2024