#include "stem.hh"
#include "stream-event.hh"
#include "text-interface.hh"
+#include "item.hh"
#include "translator.icc"
class Text_engraver : public Engraver
{
vector<Stream_event *> evs_;
- vector<Item*> texts_;
+ vector<Grob*> texts_;
public:
TRANSLATOR_DECLARATIONS (Text_engraver);
protected:
// URG: Text vs TextScript
Item *text = make_item ("TextScript", r->self_scm ());
- Axis ax = Y_AXIS;
- Side_position_interface::set_axis (text, ax);
-
- // Hmm
- int priority = 200;
- SCM s = text->get_property ("script-priority");
- if (scm_is_number (s))
- priority = scm_to_int (s);
+ int priority = robust_scm2int (text->get_property ("script-priority"),
+ 200);
/* see script-engraver.cc */
priority += i;