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.
You could get a reference of the DropDownList which contains the fonts
ddls = $(
ddl = $(ddls).data(
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
fontName = e.item.text();
spreadsheet = $(
sheet = spreadsheet.activeSheet();
selection = sheet.selection();
I hope that you will find the linked Dojo example