(Windows) Fixed an MSVC compiler warning

This commit is contained in:
Leon Styhre 2024-08-09 17:25:13 +02:00
parent 22478ed145
commit de317b4c91

View file

@ -50,7 +50,7 @@ Font::Font(float size, const std::string& path)
mFontFace = std::make_unique<FontFace>(std::move(data), mFontSize, path, mFontHB); mFontFace = std::make_unique<FontFace>(std::move(data), mFontSize, path, mFontHB);
// Use the letter 'S' as a size reference. // Use the letter 'S' as a size reference.
mLetterHeight = getGlyph('S')->rows; mLetterHeight = static_cast<float>(getGlyph('S')->rows);
// As no faces should contain a newline glyph, requesting this character normally returns // 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 // the size of the font. However there are instances where this is calculated to a slightly