diff --git a/es-core/src/resources/Font.cpp b/es-core/src/resources/Font.cpp index 9d9e2b8e0..1398e0de7 100644 --- a/es-core/src/resources/Font.cpp +++ b/es-core/src/resources/Font.cpp @@ -50,7 +50,7 @@ Font::Font(float size, const std::string& path) mFontFace = std::make_unique(std::move(data), mFontSize, path, mFontHB); // Use the letter 'S' as a size reference. - mLetterHeight = getGlyph('S')->rows; + mLetterHeight = static_cast(getGlyph('S')->rows); // As no faces should contain a newline glyph, requesting this character normally returns // the size of the font. However there are instances where this is calculated to a slightly