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
| Parameter | Type | Description |
|---|---|---|
size? | number | Font size to apply. |
Returns
number | void
Current font size when called without arguments.