How to change the fonts to use

4 posts, 0 answers
  1. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 11 Mar 2013 Link to this post

    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
  2. Boby
    Admin
    Boby avatar
    595 posts

    Posted 12 Mar 2013 Link to this post

    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.

  3. DevCraft banner
  4. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 13 Mar 2013 Link to this post

    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
  5. Boby
    Admin
    Boby avatar
    595 posts

    Posted 18 Mar 2013 Link to this post

    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.

Back to Top