This is a migrated thread and some comments may be shown as answers.

FontSize and FontFamily of DocumentList is incorrect when Style is applied to paragraph

4 Answers 48 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Tuo
Top achievements
Rank 1
Tuo asked on 08 Dec 2011, 03:17 PM
Hello,
        There is an issue  about the fontsize and fontfamily of Numbers at the beginning of each paragraph when DocumentList is applied.  If the fontsize is set through 'Style', then fontsize of the numbers from DocumentList is not consistent with that of paragraph text from 'Style'. However, If that is set directly through FontSize property of Span, it works well. My question is that how to make DocumentList live with Style? (Version: Q3 2011- 2011.3.1116.1040)
       Thanks in advance!
  PS.
   Code used for DocumentList:
             Telerik.Windows.Documents.Lists.DocumentList  _document_list 
             _document_list.AddParagraph(paragraph, level)
    
Best Regards,
Tuo

4 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 13 Dec 2011, 05:41 PM
Hi Tuo,

There is a bug with the FontSize that is used when Styles are applied to a list.

We will add this to our to-do list and fix it for the upcoming service pack or in an internal build soon after that.

We have update the Telerik points in your account in appreciation of your involvement.

Greetings,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Tuo
Top achievements
Rank 1
answered on 13 Dec 2011, 09:05 PM
Hi Iva,
        Thanks for you help.

 Best,
 Tuo
0
Adam
Top achievements
Rank 1
answered on 14 Dec 2011, 07:55 PM
Question: I am setting default fonts to my documents in the declaration of RadRichTextBox like this:

DocumentInheritsDefaultStyleSettings="True" FontFamily="Calibri" FontSize="14.7"

and the numbered lists are not observing the correct font / size. Are we talking about the same problem and solution?
0
Iva Toteva
Telerik team
answered on 20 Dec 2011, 10:22 AM
Hello Adam,

Actually this is a different problem, but the solution to the bug that Tuo reported would require a careful revision of the whole logic behind the calculation of the font size of the list numbers. Therefore, the issue with DocumentInheritsDefaultStyleSettings will also be addressed.

Regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Tuo
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Tuo
Top achievements
Rank 1
Adam
Top achievements
Rank 1
Share this question
or