Skip to content
Sheetwrite

@sheetwrite/core/codec

isCellFontFamilyfunction

Report a problem

On this page

Whether value is a valid cell fontFamily. A valid name has 1-128 letters, digits, spaces, ., _ or -, starts with a letter or digit and does not end in a space. The same rule guards snapshots, hyperlinks, clipboard and XLSX import.

Declaration

function isCellFontFamily(value: string): boolean

Parameters

value: stringrequired

A font family name, such as Courier New.

Returns

boolean

true when a cell style may use it.