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:
parent
365e8a235d
commit
6b89bb6f91
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue