Skip to content

textmode.js / layering / TextmodeLayer / fontSize

Method: fontSize() ​

ts
fontSize(size?): number | void;

Get or set this layer's font size.

Changing the font size will re-initialize the layer's grid based on the new character dimensions.

Parameters ​

ParameterTypeDescription
size?numberFont size to apply.

Returns ​

number | void

Current font size when called without arguments.

Example ​