diff --git a/SDL2pp/Font.cc b/SDL2pp/Font.cc index 225000e..5be27a8 100644 --- a/SDL2pp/Font.cc +++ b/SDL2pp/Font.cc @@ -84,11 +84,11 @@ void Font::SetHinting(int hinting) { TTF_SetFontHinting(font_, hinting); } -int Font::GetKerning() const { +bool Font::GetKerning() const { return TTF_GetFontKerning(font_); } -void Font::SetKerning(int allowed) { +void Font::SetKerning(bool allowed) { TTF_SetFontKerning(font_, allowed); } diff --git a/SDL2pp/Font.hh b/SDL2pp/Font.hh index f6bafac..dadbdf7 100644 --- a/SDL2pp/Font.hh +++ b/SDL2pp/Font.hh @@ -223,20 +223,19 @@ public: //////////////////////////////////////////////////////////// /// \brief Get the current kerning setting of the loaded font /// - /// \returns 0 (zero) if kerning is disabled. A non-zero value - /// is returned when enabled. The default for a newly - /// loaded font is enabled (1) + /// \returns False if kerning is disabled. True when disabled. + /// The default for a newly loaded font is true, enabled /// /// \see https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC27 /// //////////////////////////////////////////////////////////// - int GetKerning() const; + bool GetKerning() const; //////////////////////////////////////////////////////////// /// \brief Set whther to use kerning when rendering the loaded font /// - /// \param allowed 0 to diable kerning, non-zero to enable kerning. - /// The default is 1, enabled + /// \param allowed False to diable kerning, true to enable kerning. + /// The default is true, enabled /// /// Set whether to use kerning when rendering the loaded font. /// This has no effect on individual glyphs, but rather when @@ -248,7 +247,7 @@ public: /// \see https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC28 /// //////////////////////////////////////////////////////////// - void SetKerning(int allowed); + void SetKerning(bool allowed); //////////////////////////////////////////////////////////// /// \brief Get the maximum pixel height of all glyphs of the loaded font