textScaleFactor property

  1. @override
double textScaleFactor
override

The number of font pixels for each logical pixel.

For example, if the text scale factor is 1.5, text will be 50% larger than the specified font size.

Implementation

@override
double get textScaleFactor => _textPainter.textScaleFactor;
  1. @override
void textScaleFactor=(double value)
override

Implementation

@override
set textScaleFactor(double value) {
  if (_textPainter.textScaleFactor == value) {
    return;
  }
  _textPainter.textScaleFactor = value;
  _overflowShader = null;
  markNeedsTextLayout();
}