Appearance
Function: solveShrink() ​
solveShrink(
paragraphs,box,resolve):ShrinkOutcome
Largest fontScale (on PowerPoint's 2.5% grid) at which the text fits the box. Width and height both re-measured per scale. Conservative: because the model over-estimates, the returned scale is ≤ PowerPoint's and the text never overflows.
lnSpcReduction is left at 0 — dropping fontScale alone is provably conservative (PowerPoint trades line-spacing reduction to keep the font larger, so a reduction-free fit is always ≤ PowerPoint's scale). The reduction ramp PowerPoint applies is recorded in docs/contributing/design/text-fit.md.
Parameters ​
| Parameter | Type |
|---|---|
paragraphs | FitParagraph[] |
box | FitBox |
resolve | MetricsResolver |