ComPDFKit Web SDK
    Preparing search index...

    Function calculateAutoFontSize

    • Automatic font size of free text: the smallest line height in the quadrilaterals (y1 - y3), rounded and multiplied by 0.75, is the upper limit; the smaller of the limit and the base size is returned with pt; the base size is returned unchanged without quadrilaterals or when the smallest line height is 0.

      Parameters

      Returns string | number