Skip to content

Commit

Permalink
added Font::getSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Apr 7, 2016
1 parent 0d52eef commit ae15770
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions S-Tengine2/Source/S-Tengine2/include/Font.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
4 changes: 4 additions & 0 deletions S-Tengine2/Source/S-Tengine2/src/Font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit ae15770

Please sign in to comment.