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");