Check out this Paper.js sketch. Click on "TEXT" to view the bounding box. It's worth noting that I configured the leading
property to match the font size, though by default it is typically 1.2 times the font size as stated in the documentation.
Why do we observe margin space at the bottom of the PointText? Is there a way to eliminate it and have the bounding box snugly fit around the text? Alternatively, how can one ascertain the y value of the true baseline of the text rather than relying on the current information provided?
UPDATE
The observed "margin" at the bottom accounts for letters with descenders, such as q and p. The actual query here is how to obtain the y-coordinate of the text's baseline in PointText. This specificity towards the baseline is crucial since another library we're integrating relies on accurate text insertion, necessitating identical placement.