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.
Notice any errors or typos? Please let us know. Please feel free to edit src/type/textCore.js and open a pull request!

Related References