mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Docs: Add a note about ascent override to Font::getHeight()
This commit is contained in:
parent
79748d269a
commit
39ff0f91f4
1 changed files with 8 additions and 1 deletions
|
|
@ -290,7 +290,14 @@ public:
|
||||||
This is the maximum height, from the top of the ascent to the bottom of the
|
This is the maximum height, from the top of the ascent to the bottom of the
|
||||||
descenders.
|
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;
|
float getHeight() const noexcept;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue