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

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

1 Answer 64 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 01 Feb 2011, 08:18 PM
<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).

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 03 Feb 2011, 10:21 AM
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>>
Tags
RichTextBox
Asked by
Bob
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or