Differing char spacing in a WPF RichTextBox
问题 I have a custom control I have made. It extends a RichTextBox. I have code that sets the width of the Document so that the number of chars is limited. (I am using Courier New, so I have a fixed width font.) This all works fine. But once I put the control in my application, the limit starts failing. After comparing the two, I noted that the spacing between my test application and my real application is different. Here is an example: As you can see my spacing for the Test App is larger than the