Hello,
There is a possibility in the Spreadsheet,
fontFamily to be set to specific range in the sheet. But currently there is no built in configuration which allows you to add a font to the Spreadsheet font list in the toolbar dropdown.
You could use the fontFamily method and the approach described below to achieve the desired functionality.
The stylesheets of the newly added fonts should be referenced.
For example:
You could get a reference of the DropDownList which contains the fonts
Then, you could set the list of the fonts using
DropDownList setDataSource method
You need to
subscribe to the 'select' event of the DropDownList
In the select event handler, you could check the selected font. A reference of the Spreadsheet widget is needed. You could check the current selection by using
selection() method. The font could be applied, by using range fontFamily method
I hope that you will find the
linked Dojo example helpful.
Regards,
Neli
Progress Telerik