Added set_name to font_set class

This commit is contained in:
Colin Rundel 2012-08-27 16:09:29 -04:00 committed by Dane Springmeyer
parent 924f3fb19c
commit 219c5f5809
2 changed files with 6 additions and 0 deletions

View file

@ -39,6 +39,7 @@ public:
font_set(font_set const& rhs);
font_set& operator=(font_set const& rhs);
unsigned size() const;
void set_name(std::string const& name);
std::string const& get_name() const;
void add_face_name(std::string);
std::vector<std::string> const& get_face_names() const;

View file

@ -59,6 +59,11 @@ void font_set::add_face_name(std::string face_name)
face_names_.push_back(face_name);
}
void font_set::set_name(std::string const& name)
{
name_ = name;
}
std::string const& font_set::get_name() const
{
return name_;