This is a migrated thread and some comments may be shown as answers.
How to add custom font in RadTextEditor
1 Answer 20 Views
This is a migrated thread and some comments may be shown as answers.
Prashant
Top achievements
Rank 1
Prashant asked on 30 Jan 2013, 04:17 AM
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.
~Thanks 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 30 Jan 2013, 07:38 AM
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.
eg:
C#:
RadEditor1.FontNames.Add("Arial");
RadEditor1.FontNames.Add("Arial Narrow");
RadEditor1.FontNames.Add("Arial Black");
RadEditor1.FontNames.Add("Trebuchet MS");

For more information check the following documentation
Fonts

Thanks
Princy.
Asked by
Prashant
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or