From 32530ae6da9d05c918c2d80a47820cac7e82321e Mon Sep 17 00:00:00 2001 From: Vladimir Gamalian Date: Sun, 26 Jul 2015 13:35:44 +0700 Subject: [PATCH] Missed Font::IsGlyphProvided definition has been added. --- SDL2pp/Font.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SDL2pp/Font.cc b/SDL2pp/Font.cc index de545c8..08d7266 100644 --- a/SDL2pp/Font.cc +++ b/SDL2pp/Font.cc @@ -140,6 +140,10 @@ Optional Font::GetStyleName() const { return std::string(str); } +int Font::IsGlyphProvided(Uint16 ch) const { + return TTF_GlyphIsProvided(font_, ch); +} + void Font::GetGlyphMetrics(Uint16 ch, int& minx, int& maxx, int& miny, int& maxy, int& advance) const { if (TTF_GlyphMetrics(font_, ch, &minx, &maxx, &miny, &maxy, &advance) != 0) throw Exception("TTF_GlyphMetrics");