1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Docs: Add a note about ascent override to Font::getHeight()

This commit is contained in:
attila 2025-10-15 11:21:43 +02:00 committed by Attila Szarvas
parent 79748d269a
commit 39ff0f91f4

View file

@ -290,7 +290,14 @@ public:
This is the maximum height, from the top of the ascent to the bottom of the
descenders.
@see withHeight, setHeightWithoutChangingWidth, getAscent
There can be a notable exception to this rule however, if you use the
ascent/descent override feature. This feature follows CSS semantics and acts
on the point height of the Font. So if you specified the font's height using
setHeight() and also specified an ascent or descent override, then the visually
rendered height of the Font can be different from the value returned by
getHeight().
@see withHeight, setHeightWithoutChangingWidth, getAscent, setAscentOverride
*/
float getHeight() const noexcept;