Class: Font

Core.SpreadsheetEditor. Font

Represents a font to be used in the spreadsheet editor. The creation of fonts follows a factory pattern so you must use Workbook.createFont rather than constructing directly.

new Font()

Properties:
Name Type Description
fontFace string A string representing the font family name.
pointSize number A double precision floating-point number representing the font size in points.
color string The color of the font in hexadecimal format (e.g., "#FF0000" for red).
bold boolean Indicates whether the font is bold.
italic boolean Indicates whether the font is italic.
underline boolean Indicates whether the font is underlined.
strikeout boolean Indicates whether the font has a strikeout effect.

Methods


equals(fontToCompare)

Compares this font object to another font object to determine equality.
Parameters:
Name Type Description
fontToCompare Core.SpreadsheetEditor.Font The font to compare against.
Returns:
Returns true if all relevant font properties (e.g., name, size, style, color) are equal. False otherwise.