*/
#include <math.h>
-#include "debug.hh"
+#include "warn.hh"
#include "text-item.hh"
#include "paper-def.hh"
#include "font-interface.hh"
Molecule
-Text_item::lookup_text (Grob *me, Font_metric*fm, SCM text)
+Text_item::lookup_text (Grob *, Font_metric*fm, SCM text)
{
SCM list = scm_list_n (ly_symbol2scm ("text"), text, SCM_UNDEFINED);
list = fontify_atom (fm, list);
Text_item::markup_text2molecule (Grob *me, SCM markup_text,
SCM alist_chain)
{
- SCM sheet = me->paper_l ()->style_sheet_;
+ SCM sheet = me->get_paper ()->style_sheet_;
SCM f = ly_cdr (scm_assoc (ly_symbol2scm ("markup-to-properties"), sheet));
SCM markup = ly_car (markup_text);
SCM r = ly_assoc_chain (ly_symbol2scm ("raise"), p);
if (gh_pair_p (r) && gh_number_p (ly_cdr (r)))
raise = gh_scm2double (ly_cdr (r)) * staff_space;
+
Interval extent;
bool extent_b = false;
}
Offset o (kern[X_AXIS], raise - kern[Y_AXIS]);
-
Molecule mol = Lookup::filledbox (Box (Interval (0,0), Interval (0,0)));
+
+ SCM cp = ly_deep_copy (p);
+ if (raise)
+ {
+ SCM cr = ly_assoc_chain (ly_symbol2scm ("raise"), cp);
+ scm_set_cdr_x (cr, gh_int2scm (0));
+ }
while (gh_pair_p (text))
{
- Molecule m = text2molecule (me, ly_car (text), p);
+ Molecule m = text2molecule (me, ly_car (text), cp);
if (!m.empty_b ())
{
text = ly_cdr (text);
}
+
/* Set extend to markup requested value. */
if (extent_b)
{