Added set_name to font_set class
This commit is contained in:
parent
c7c8c468ab
commit
12f2c247b3
2 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,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;
|
||||
|
|
|
@ -61,6 +61,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_;
|
||||
|
|
Loading…
Reference in a new issue