debugPaintTextLayoutBoxes top-level property
Causes each RenderParagraph to paint the layout boxes of its text.
Each painted box illustrates how the encompassed text contributes to the overall text layout. For instance, for paragraphs whose StrutStyle is disabled, the line height of a line is the smallest vertical extent that covers all text boxes on that line.
Typically, only characters with a non-zero horizontal advance produce these boxes. No boxes will be painted for lines that only consist of a new line character.
See also:
- debugPaintBaselinesEnabled which helps debug text alignment.
Implementation
bool debugPaintTextLayoutBoxes = false;