Reference fontDescent()

fontDescent()

Returns the loose descent of the text based on the font's intrinsic metrics.

The fontDescent() function calculates the descent of the text using the font's intrinsic metrics (e.g., fontBoundingBoxDescent). This value represents the space below the baseline that the font inherently occupies, and is useful for layout purposes when an approximate vertical measurement is required.

Examples

Syntax

fontDescent()

Parameters

Returns

Number: The loose descent value in pixels.

Related References