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

5 posts, 0 answers
  1. Tuo
    Tuo avatar
    20 posts
    Member since:
    Oct 2011

    Posted 08 Dec 2011 Link to this post

    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
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 13 Dec 2011 Link to this post

    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 >>

  3. Tuo
    Tuo avatar
    20 posts
    Member since:
    Oct 2011

    Posted 13 Dec 2011 Link to this post

    Hi Iva,
            Thanks for you help.

     Best,
     Tuo
  4. Adam
    Adam avatar
    32 posts
    Member since:
    Sep 2010

    Posted 14 Dec 2011 Link to this post

    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?
  5. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 20 Dec 2011 Link to this post

    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 >>

Back to Top