- Staff_symbol_referencer_interface si (this);
- int p = int (si.position_f ());
- if (!(p % 2))
- si.set_position (p + directional_element (this).get ());
- }
-}
-Molecule
-Dots::do_brew_molecule () const
-{
- Molecule mol (lookup_l ()->fill (Box (Interval (0,0),
- Interval (0,0))));
- Molecule d = lookup_l ()->afm_find (String ("dots-dot"));
+ if (scm_is_number (c))
+ {
+ SCM scm_style = sc->get_property ("style");
+ string style ="";
+ if (scm_is_symbol (scm_style))
+ style = ly_symbol2string (scm_style);
+ string idx = "dots.dot" + style;
+ Stencil d = Font_interface::get_default_font (sc)->find_by_name (idx);
+ if (d.is_empty ())
+ {
+ sc->warning (_f ("dot `%s' not found", idx.c_str ()));
+ return SCM_EOL;
+ }
+ Real dw = d.extent (X_AXIS).length ();