Skip to main content
Version: Streamsheets 2.5

FONTFORMAT

Create a font format description from the given arguments.

note

This function is deprecated. Use the "Object Properties" to set font style.

Syntax

FONTFORMAT(Name, Size[, Style, Color, HorizontalAlignment])

Arguments

NameDescription
NameName of font to use.
SizeSize of font in pt.
StyleOptional. Style of font. Allowed values are 0 (normal), 1 (bold) and 2 (italic)
ColorOptional. Hexadecimal color value.
HorizontalAlignment0, 1 or 2 changes the alignment of the text to left, center or right.

Return Value

JSON String, which defines the font format and can be used in drawing functions.

Example

FunctionResultComment
FONTFORMAT("Verdana", 10)Use Verdana font family and a font size of 10pt.