How to add custom font in RadTextEditor

2 posts, 0 answers
  1. Prashant
    Prashant avatar
    1 posts
    Member since:
    Jan 2013

    Posted 29 Jan 2013 Link to this post

    Hi i am Prashant Shinde.
    i am a website developer.
    one of my client want to add some more font to his RadTextEditor,  but i haven't find any option to add custom font in that editor..
    i need help for this and looking forward to get some response for my query.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 30 Jan 2013 Link to this post

    Hi Prashant

    All fonts are set using the FontNames Collection. You can create a new set of dropdown Font name items declaratively, programmatically or using the ToolsFile.
    Make sure the fonts must be available on the client machine.

    Use the FontNames collection Add() method to include new fonts in the list. When first using the Add() method, the Fonts dropdown will be reset, so the fonts you add will not be appended to the default set, but will rather create a new Fonts set.
    RadEditor1.FontNames.Add("Arial Narrow");
    RadEditor1.FontNames.Add("Arial Black");
    RadEditor1.FontNames.Add("Trebuchet MS");

    For more information check the following documentation

Back to Top