stepGranularity method

VxRichText stepGranularity(
  1. double stepGranularity
)

The step size in which the font size is being adapted to constraints.

The Text scales uniformly in a range between minFontSize and maxFontSize. Each increment occurs as per the step size set in stepGranularity.

Most of the time you don't want a stepGranularity below 1.0.

Implementation

VxRichText stepGranularity(double stepGranularity) {
  _stepGranularity = stepGranularity;
  return this;
}