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

How to change the fonts to use

3 Answers 67 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 11 Mar 2013, 03:34 PM
Hello,
I'm working on a scenario where I must limit the fonts that the user can use in its text to Arial, Times New Roman and Verdana. I've tried to change the list of font directly on the selection ComboBox. Unfortunately, the application crashes when changing the font. Do you have a description on how to change the font list?
Thanks in advance.
Patrick

3 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 12 Mar 2013, 04:38 PM
Hi Patrick,
You can use FontManager.UnregisterFont method, which will remove the fonts throughout the UI.

Don't hesitate to contact us if you have other questions.


Greetings,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 13 Mar 2013, 01:59 PM
Boby,
this call will remove the fonts throughout the UI, not just for one instance of the RichTextBoxRibbon.
I have tried to change the ItemsSource of the RadComboBox that has the fonts list. It works and is usable, but the mini ToolBar contains all the fonts. Is there a possibility to change the list on only one instance of the ribbon and have the mini ToolBar have the same font collection ?
Patrick
0
Boby
Telerik team
answered on 18 Mar 2013, 07:44 AM
Hello Patrick,
Unfortunately customizing fonts list per instance is not available. What comes to my mind is to disable the SelectionMiniToolBar using RadRichTextBox.IsSelectionMiniToolBarEnabled property, but I am not sure if this would fit your scenario. Note that there is one more place where fonts from the FontManager are used - in the FontPropertiesDialog.

All the best,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Boby
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or