diff options
Diffstat (limited to 'src/ui/font.cc')
-rw-r--r-- | src/ui/font.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ui/font.cc b/src/ui/font.cc index 26d4155..9d721fd 100644 --- a/src/ui/font.cc +++ b/src/ui/font.cc @@ -6,7 +6,8 @@ #include "ui/font.h" -namespace ui { +namespace ui +{ Font::Font(const char *name, const float width, const float height) { @@ -23,17 +24,17 @@ void Font::set_size(const float width, const float height) font_size.assign(width, height); } -void Font::set_size(math::Vector2f const &size) +void Font::set_size(const math::Vector2f &size) { font_size.assign(size); } -void Font::set_width(float width) +void Font::set_width(const float width) { font_size.x = width; } -void Font::set_height(float height) +void Font::set_height(const float height) { font_size.y = height; } @@ -46,12 +47,10 @@ void Font::set_name(const char *name) font_name.clear(); } -void Font::set_name(std::string const & name) +void Font::set_name(const std::string & name) { font_name.assign(name); } } - - |