Permalink
Browse files

Added set_name to font_set class

  • Loading branch information...
1 parent c7c8c46 commit 12f2c247b3d73196762fc9f4c08d27eb255d5879 @rundel rundel committed Aug 27, 2012
Showing with 6 additions and 0 deletions.
  1. +1 −0 include/mapnik/font_set.hpp
  2. +5 −0 src/font_set.cpp
@@ -40,6 +40,7 @@ class MAPNIK_DECL font_set
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
@@ -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_;

0 comments on commit 12f2c24

Please sign in to comment.