+const GL::Font &Style::get_font() const
+{
+ if(!font)
+ throw logic_error("!font");
+ return *font;
+}
+
+const Part *Style::get_part(const string &name) const
+{
+ for(PartSeq::const_iterator i=parts.begin(); i!=parts.end(); ++i)
+ if(i->get_name()==name)
+ return &*i;
+
+ return 0;
+}
+