You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linebreak currently only works on Spaces, Hyphens and Soft-Hyphens.
If there aren't any of those characters the word should still be fit into the width.
The text was updated successfully, but these errors were encountered:
I ran into a similar issue with the original PdfSharp. I'm not sure if you are working with the same problem or not but word wrapping does not work with gfx.drawstring. Instead XTextFormatter needs to be used.
//need xtextformatter for word wrapping var tf = new XTextFormatter(gfx); rect = new XRect(25, 150, 570, 50); gfx.DrawRectangle(xpen, rect); format.LineAlignment = XLineAlignment.Near; tf.DrawString("Lengthy text that needs to wrap...", tinos, brush, rect, format);
Linebreak currently only works on Spaces, Hyphens and Soft-Hyphens.
If there aren't any of those characters the word should still be fit into the width.
The text was updated successfully, but these errors were encountered: