diff --git a/modules/juce_graphics/fonts/juce_Font.cpp b/modules/juce_graphics/fonts/juce_Font.cpp index ed5ec07ebc..5a6712f839 100644 --- a/modules/juce_graphics/fonts/juce_Font.cpp +++ b/modules/juce_graphics/fonts/juce_Font.cpp @@ -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 {