textScaleFactor property
double
textScaleFactor
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
double get textScaleFactor => textPainter.textScaleFactor;
Implementation
set textScaleFactor(double value) {
assert(value != null);
if (textPainter.textScaleFactor == value) return;
textPainter.textScaleFactor = value;
markNeedsTextLayout();
}