mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Missed Font::IsGlyphProvided definition has been added.
This commit is contained in:
parent
6752baabc1
commit
32530ae6da
@ -140,6 +140,10 @@ Optional<std::string> 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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user