diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 9e2193fcd..9e104035c 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -396,6 +396,7 @@ float Font::getKerning(Uint32 first, Uint32 second, unsigned int characterSize) // Get the kerning vector FT_Vector kerning; + kerning.x = kerning.y = 0; if( FT_HAS_KERNING(face)) FT_Get_Kerning(face, index1, index2, FT_KERNING_UNFITTED, &kerning);