Skip to content

Function: measureHeightPt() ​

measureHeightPt(paragraphs, innerWidthPt, resolve, fontScalePct, lnSpcReductionPct, widthSafety?): number | null

Total laid-out height (points) at a given scale/reduction, or null if any paragraph is unmeasurable. Thin wrapper over measureLayout.

Parameters ​

ParameterTypeDefault value
paragraphsFitParagraph[]undefined
innerWidthPtnumberundefined
resolveMetricsResolverundefined
fontScalePctnumberundefined
lnSpcReductionPctnumberundefined
widthSafetynumber1

Returns ​

number | null