Line break or space within text fragment

Hi there,
I am trying to add text segments (which has different text styles) to construct a text fragment so that I can place the text fragment into a Rectangle shape. I am struggling to add line breaks or vertical gaps between text segments.

Please could you help and point me in the right direction?
Any code snippet would be great. We are using .Net C#.

Kind regards,
Mir

1 Like

I am having the same issue but with a circle, and have opened a seperate thread here:

@mnewaz

You may use ‘\r\n’ escape character for a line break and TextSegment.TextState.LineSpacing property for line spacing purposes. However, if this does not fulfill what you require, please share complete code snippet along with expected output PDF document. We will further test the scenario in our environment and address it accordingly.