1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Font: Fix result of getDescent(), which was incorrect when font height was set in points

This commit is contained in:
reuk 2024-05-13 13:12:05 +01:00
parent 365e8a235d
commit 6b89bb6f91
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -744,7 +744,7 @@ float Font::getHeight() const noexcept
return height > 0.0f ? height : font->getPointHeight() / getHeightToPointsFactor();
}
float Font::getDescent() const { return font->getHeight() - getAscent(); }
float Font::getDescent() const { return getHeight() - getAscent(); }
float Font::getHeightInPoints() const
{