I'm recently working on a text editor application using RichTextBox. I'm able to divide the user's input text into multiple pages when the text content size is bigger than the page size by taking the overflowing text into another page. The paragraphs are well justified right-to-left and left-to-right except for the last line in the last paragraph when I'm taking that overflowing text into the newly created page. This line should be justified like the other lines in the same paragraph because it has another part in the next page.
I know I can use space mono fonts and replace the blank spaces with measured size of space characters. But it seem to cause another font problem inside the text.
How can I make that last line justified to the end of page width?