简体   繁体   English

更改 spreadjs 中的默认字体

[英]change default font in spreadjs

How to change the default font in the toolbar of spreadjs?如何更改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);

尝试

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM