Fixed unintialized variable

This commit is contained in:
Radek Dutkiewicz 2021-01-20 19:25:57 +00:00 committed by Lukas Dürrenberger
parent f76f0607c7
commit 165b715d02

View File

@ -396,6 +396,7 @@ float Font::getKerning(Uint32 first, Uint32 second, unsigned int characterSize)
// Get the kerning vector // Get the kerning vector
FT_Vector kerning; FT_Vector kerning;
kerning.x = kerning.y = 0;
if( FT_HAS_KERNING(face)) if( FT_HAS_KERNING(face))
FT_Get_Kerning(face, index1, index2, FT_KERNING_UNFITTED, &kerning); FT_Get_Kerning(face, index1, index2, FT_KERNING_UNFITTED, &kerning);