diff --git a/S-Tengine2/Source/S-Tengine2/include/Font.h b/S-Tengine2/Source/S-Tengine2/include/Font.h index c4865433..9bd136b9 100644 --- a/S-Tengine2/Source/S-Tengine2/include/Font.h +++ b/S-Tengine2/Source/S-Tengine2/include/Font.h @@ -79,6 +79,7 @@ class Font : public NodeResource{ // updates the existing glyphs map to match _size void resize(float _size); + float getSize(); private: float size; }; \ No newline at end of file diff --git a/S-Tengine2/Source/S-Tengine2/src/Font.cpp b/S-Tengine2/Source/S-Tengine2/src/Font.cpp index 046d18d8..7b5de71b 100644 --- a/S-Tengine2/Source/S-Tengine2/src/Font.cpp +++ b/S-Tengine2/Source/S-Tengine2/src/Font.cpp @@ -243,4 +243,8 @@ void Font::resize(float _size){ loadGlyph(g.first); g.second->setGlyph(face->glyph, g.first, antiAliased); } +} + +float Font::getSize(){ + return size; } \ No newline at end of file