setFontSize method

void setFontSize(
  1. int px
)

Sets the rendered font size in CSS pixels. Re-renders glyphs at the new size but does not change the column/row count on its own — only fit or resize do — which is exactly what a fixed-dimension session needs.

Implementation

void setFontSize(int px) => _term.options['fontSize'] = px.toJS;