I have attached three screenshots demonstrating the effects of the issue and will be posting sample code later today.
In the screenshots you can see the formatting differences between Normal, Bold, and Bold Italic for 18pt Times New Roman. Other font families and other font sizes also exhibit this behavior but these are illustrative. This issue presents for Italic without Bold as well but showing the Bold Italic highlights the issue nicely.
In each screenshot I have highlighted the same sections of text for visual reference.
What you see in the Normal selection is the text displayed with no cutoff and fills up seven lines almost exactly. In the Bold selection you see that the text is also displaying with no cutoff and fills up a majority of eight lines. The problem is with the Bold Italic.
First note the words are being cut off in the middle. Also note that the Bold Italic takes up about eight and a third lines (less than Bold but more than Normal). This is similar to how Word behaves - the Bold Italic text takes up less space than the plain Bold text.
To describe this is non-code terms I do the following
- Create a RadDocument
- Add a Section
- Add a Paragraph and set the paragraph's font size to 1.25 the value that will be in the text. All of the text in the paragraph will be formatted with the same family, size, and style.
- Add a Span and set the family, size, and style and then add the text to it.
You will also note in the screenshots the "Effective Date" and "Revision Date" are displaying fully. This only happens when I append a non-breaking space (NBSP) to the end of the Italic date. If I do not append the NBSP then the last character of the date is cut off. A plain space character will leave the date cut off as well so a NBSP is required here.
More coming later today.
Many thanks!