diff --git a/SDL2pp/Font.cc b/SDL2pp/Font.cc index f761223..5d2a181 100644 --- a/SDL2pp/Font.cc +++ b/SDL2pp/Font.cc @@ -118,7 +118,7 @@ int Font::GetLineSkip() const { return TTF_FontLineSkip(font_); } -int Font::GetNumFaces() const { +long Font::GetNumFaces() const { return TTF_FontFaces(font_); } diff --git a/SDL2pp/Font.hh b/SDL2pp/Font.hh index 6ba25ed..ad6f65f 100644 --- a/SDL2pp/Font.hh +++ b/SDL2pp/Font.hh @@ -362,7 +362,7 @@ public: /// \see https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC33 /// //////////////////////////////////////////////////////////// - int GetNumFaces() const; + long GetNumFaces() const; //////////////////////////////////////////////////////////// /// \brief Test if the current font face of the loaded font is a fixed width font