sheets.rows.cells.fontNameString
(default: "Calibri")
Deprecated in versions 2015.3 and later. Use fontFamily
instead.
Example
<script>
var workbook = new kendo.ooxml.Workbook({
sheets: [
{
rows: [
{ cells: [
{ value: "Arial Font", fontName: "Arial" },
{ value: "Times Font", fontName: "Times New Roman" },
{ value: "Default Font" }
] }
]
}
]
});
workbook.toDataURLAsync().then(function(dataURL) {
kendo.saveAs({
dataURI: dataURL,
fileName: "font-name-example.xlsx"
});
});
</script>
In this article