Missed Font::IsGlyphProvided definition has been added.

This commit is contained in:
Vladimir Gamalian 2015-07-26 13:35:44 +07:00
parent 6752baabc1
commit 32530ae6da

View File

@ -140,6 +140,10 @@ Optional<std::string> Font::GetStyleName() const {
return std::string(str); 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 { 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) if (TTF_GlyphMetrics(font_, ch, &minx, &maxx, &miny, &maxy, &advance) != 0)
throw Exception("TTF_GlyphMetrics"); throw Exception("TTF_GlyphMetrics");