change default font in spreadjs

482 Views Asked by At

How to change the default font in the toolbar of spreadjs? I tried it with the below code. But it didn't working.

        var active = spread.getActiveSheet();
        sheetstyle.font = "8pt Arial";

        active.setDefaultStyle(sheetstyle, GC.Spread.Sheets.SheetArea.viewport);
1

There are 1 best solutions below

0
On

Try

GC.Spread.Sheets.Themes.Office.bodyFont("Arial")