When a Hyperlink is added via the editor UI, the font size is bigger than the font size of the text.

2 posts, 0 answers
  1. Bob
    Bob avatar
    17 posts
    Member since:
    Jan 2011

    Posted 01 Feb 2011 Link to this post

    <telerik:RadRichTextBox
              x:Name="Editor"
              
    FontFamily="/MS_PSDM.Silverlight.v2;component/style/SegoeRg.ttf#Segoe"
              DocumentInheritsDefaultStyleSettings="True"
              FontSize="13"
              IsSpellCheckingEnabled="False"
              IsContextMenuEnabled="True"
              IsSelectionMiniToolBarEnabled="True"
              Background="Transparent"
            >

    The above code we use gives the font size a size of "9" if you highlight the text via the Font interface. But if you change a word to be a hyperlink, it's visibly a few pixel sizes bigger(attached png file). Then when you highlight the hyperlink text, choose Font in the content menu it shows 9. Then if you change nothing in the Font popup, just click OK, the Hyperlinked text in the editor changes to match the font size of the other text.

    I'm guessing this is a bug, but is there a way to add a property or style or something to the RadRichTextBox to make the font size the same? Maybe a DefaultHyperlinkFontSize="13" or something like that. "13" since I can guess the FontSize property is in pixels, while the Font dialog in the editor is in point(pt).
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 03 Feb 2011 Link to this post

    Hello Bob,

    Thank you for getting to us about this issue.
    There really are some bugs with the insertion of hyperlinks and the font properties dialog. All hyperlinks, which are inserted in the document, take the default font settings (either the ones set on the RadRichTextBox or the default ones - Verdana, 12pt). We will change this behavior, so that the new hyperlink gets the font values of the current editing style.
    As for your case, the new hyperlink is 9.8, but fore some reason the text around it is probably 9. A possible cause might be the font properties dialog, which rounds the value when it is opened and that is why, even though you don't adjust the properties on the dialog, they are set to new values.
    We will have these in mind for the Q1 Beta, which is scheduled in the second half of February.
    We have updated your Telerik points in appreciation of your bug report.
    If you have any other questions, do not hesitate to contact us again.

    Kind regards,
    Iva
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top